The JSON library, libjson, allows applications to decode and
encode JSON data. This is useful for reading and interpreting complex data or transferring
data between systems.
The two most common use cases are:
- Reading JSON data files — Some applications use configuration data that's
encoded in JSON. The library saves you from writing a parser to manually extract
individual fields and copy them into data structures.
- Sending and receiving protocol messages written in JSON — The QNX over
the air (OTA) servers provide software updates to remote clients, using
JSON-encoded data. If you have applications that need to send data to remote
clients, you can use the library to encode multi-layered JSON data
that you can then output to protocol messages.
Other possible use cases are if you want to read JSON data, modify the contents, and
resave the data, or generate your own JSON data for internal use.