squix78 / json-streaming-parser

Arduino library for parsing potentially huge json streams on devices with scarce memory
MIT License
205 stars 88 forks source link

Bugfix: endDocument() called when root object ends #5

Closed maxpowel closed 7 years ago

maxpowel commented 8 years ago

With a payload like this: {"key": "value"} the event endDocument are never called, just endObject. This little change fixes that

The same issue like #4 but for object instead of array