1
1
mirror of https://github.com/wader/fq.git synced 2024-12-23 13:22:58 +03:00
fq/format/asn1/asn1_ber.jq
Mattias Wadman 87b2c6c10c help,doc: Use markdown for format documentation again
Markdown is used as is in online documentation and in cli the markdown decoder
is used to decode and the some jq code massages it into something cli friendly.

Was just too much of a mess to have doc in jq.
2022-09-11 00:53:29 +02:00

9 lines
231 B
Plaintext

def _asn1_ber_torepr:
if .class == "universal" then
if .tag | . == "sequence" or . == "set" then
.constructed | map(_asn1_ber_torepr)
else .value | tovalue
end
else .constructed | map(_asn1_ber_torepr)
end;