JSON Decoder for PIC® and AVR® Devices
The decoder translates the string format of a JSON object into a C data structure representation. This way programmers can access the key-value pairs. Using JSON objects makes it easy to interconnect applications.
The JSON Decoder code is available on GitHub.
●JSON is the most used data serialization format on the web and on desktop applications. Since it has an implementation in virtually all modern programming language, it is the perfect tool for data interchange between applications. It has a text format that is easy for humans to read and write and easy for machines to parse and generate.
A JSON object is a set of key-value pairs. While keys can only be strings, values can be a lot of things. This decoder implementation supports string, number, and object values.
Note: To keep this library suited for low-memory devices, only a subset of features was selected to be implemented,therefore, array, boolean, and null values are not supported.
The following block of code shows an example usage of this decoder. Section 2. API describes the API functions in detail.
Note: The outermost object in a JSON is called the root.
|
|
Application note & Design Guide |
|
|
|
Please see the document for details |
|
|
|
|
|
|
|
English Chinese Chinese and English Japanese |
|
2020 |
|
|
|
TB3239,DS90003239A |
|
296 KB |
- +1 Like
- Add to Favorites
Recommend
All reproduced articles on this site are for the purpose of conveying more information and clearly indicate the source. If media or individuals who do not want to be reproduced can contact us, which will be deleted.