Chapter 8.  Generated C JSON Encode/Decode Functions

Table of Contents

Preparing C Data Variables for Encoding
Generated JSON Encode Functions
Generated JSON Decode Functions

XBinder generates C encode functions to transform data from a populated C structure into a JSON message instance. This process is known as marshalling or serialization in similar products. It generates decode functions to parse data from a JSON message instance and store the data in a variable of the generated C structure. This is known as unmarshalling or deserialization in other applications.

The following sections describe procedures for using the XBinder generated functions to encode and decode XML data.