JSON Decoder for PIC® and AVR® Devices

2021-11-16
●This document describes the use and implementation of a JSON subset decoder, aimed for embedded devices such as PIC® and AVR® microcontrollers.
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.

Microchip

microcontrollers

More

More

Application note & Design Guide

More

More

Please see the document for details

More

More

English Chinese Chinese and English Japanese

2020

TB3239,DS90003239A

296 KB

- The full preview is over. If you want to read the whole 20 page document,please Sign in/Register -
  • +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.

Contact Us

Email: