Chapter 14. Generated JavaScript Object Notation (JSON) Functions

Table of Contents

Generated JSON Encode Functions
Generated JSON Decode Functions

JavaScript Object Notation (JSON) is a minimal format for exchanging data. In version 6.6, ASN1C introduces the capability of targeting JSON for encoding and decoding. This marries a well-known simple text format (JSON) with a robust and mature schema language (ASN.1) and provides a possible interchange between JSON and ASN.1 binary formats like BER or PER.

To generate encoding and decoding functions, use the -json switch on the command-line or select the appropriate option in the GUI. The following sections describe the generated encoding and decoding functions. Descriptions of the JSON run time functions may be found in our C JSON Runtime Library Reference Manual. C++ classes are described in the C++ JSON Runtime Libarary Reference Manual.