You signed in with another tab or window. Reload to refresh your session.You signed out in another tab or window. Reload to refresh your session.You switched accounts on another tab or window. Reload to refresh your session.Dismiss alert
I’m working at the TOPS Lab at the University of Wisconsin-Madison. In the acm.cpp file, I’m using the filetest() function to decode a hex string. Currently, the decoder outputs the result in XML format, but for our project, we would prefer to store the data in JSON format in our database. Is there an option or method available to modify the output to JSON format within this project?
Thank you for your assistance!
The text was updated successfully, but these errors were encountered:
Currently the decoder generated by asn1c that this application uses has the "-no-gen-JER" option set, so it is not capable of producing JSON. Decoder generation happens here:
I have an example here of a codec that is capable of producing JER for the latest (2024) version of J2735. It is in the context of interoperation with Java with an HTTP API, but there is a C library containing codec functions that could be used from native code:
Or if you need a general purpose command line tool you could simply use the "Mouse" fork of asn1c, which supports JER, to compile the "converter-example" command line tool from the ASN.1 as shown in the docs here:
Hello,
I’m working at the TOPS Lab at the University of Wisconsin-Madison. In the acm.cpp file, I’m using the filetest() function to decode a hex string. Currently, the decoder outputs the result in XML format, but for our project, we would prefer to store the data in JSON format in our database. Is there an option or method available to modify the output to JSON format within this project?
Thank you for your assistance!
The text was updated successfully, but these errors were encountered: