json-streaming-parser
json-streaming-parser copied to clipboard
Arduino library for parsing potentially huge json streams on devices with scarce memory
I have an asynchronous listener thread that receives JSON documents. After one is complete (endDocument is called), the next one is ignored because the parser is in STATE_DONE. I tried...
I have a pretty memory-tight application and the parser buffer size of 512 was way overkill for my use-case (the largest individual keys/values are around 20 chars). I'm apparently not...
Hi, 1th sorry for mi bad english write. Hope somebody can help me. I'm try with the demo programm JsonStreamingParser.ino. my Json is like: `char json[] = "{\"observations\":[{\"stationID\":\"IVENES1\",\"obsTimeUtc\":\"2020-01-01T09:44:08Z\",\"obsTimeLocal\":\"2020-01-01 10:44:08\",\"neighborhood\":\"Venesmes\",\"softwareType\":\"EasyWeatherV1.4.4\",\"country\":\"FR\",\"solarRadiation\":34.6,\"lon\":2.30547237,\"realtimeFrequency\":null,\"epoch\":1577871848,\"lat\":46.8543663,\"uv\":0.0,\"winddir\":111,\"humidity\":97,\"qcStatus\":-1,\"metric\":{\"temp\":4,\"heatIndex\":4,\"dewpt\":3,\"windChill\":4,\"windSpeed\":5,\"windGust\":5,\"pressure\":1031.93,\"precipRate\":0.00,\"precipTotal\":0.00,\"elev\":169}}]}";` All...
In the reset method the stack-Position was not reset. This leads to an overflow of the stack array when the parser is reused and (the previous document was not fully...
The original code uses signed `char` type for variables that hold the character being processed. It breaks 8-bit ASCII characters used in many European languages, but also prevents the library...
This branch provides several enhancements to existing interfaces and data handling (_as a consequence, compatibility with previous versions is BROKEN_): - explicit element path tracking (ElementPath class): object keys and...
Hello, would you consider this? BTW, you have a bug in how you got decimal from hex array: you stack them in the wrong order. :)
Examples?
What examples? I read through the 3 files in the examples folder but I don't see any examples of getting values from the parsed json.
I have implemented the streaming parser in an Arduino sketch and it works great. In an effort to get more debugging capabilities I am using AS7 v7.0.1931. The sketch compiles...
When developing with Visual Studio, and the Visual Micro extension, you can take advantage of the Shared Library features. The main advantage is the library code doesn't have to reside...