ASN.1 to JSON Schema

Are there any tools hidden in the asn1 application which would help me generate JSON Schema to describe the JER encoded output of a asn1ct generated encoder?

The problem may not be Erlang specific however I cannot find any available utility to generate ITU-T X.697 compatible JSON Schema from ASN.1 so I may have to develop one myself and I would be doing so in Erlang. I can see that scanning (asn1ct_tok:file/1) and parsing (asn1ct_parser2:parse/2) may be reused.

2 Likes

I ended up creating a simple transpiler which can be found here.

1 Like