Just another JSON reader library

Hi,

although there are already several excellent solutions out there (for example PvJson, JSONer, and more), I decided to write my own JSON reader because my use-case was a bit different:
I needed to inspect and work with many different JSON responses that additionally frequently change their structure, and I wanted to work with those informations without changing PLC variable declarations.

The library “TinyJsonLb” (it’s just a JSON reader based on tiny-json) deserializes a JSON string content into a flat array of a structure, where each array element contains some information about the JSON element parsed.
So, if reading JSON content inside a string without error ends up in an array filled with the JSON elements, for example like:

If anybody else has similar need, just feel free to use the library “as-is”, it’s under MIT license. The package containing the library and some test code can be found here (as a part of my CommunitySamples project):

11 Likes

thanks for sharing :wink:

Nice! And the other utilities in this repo are fantastic too, thank you.

1 Like