News for hackers. Stuff that matters.
Re:Jsonifier, The Fastest and A New JSON Parsing/Serializing... by fjfaase on Tuesday November 21, 2023 @06:56AM (#38362447)
See the large number of JSON parse solutions and all the variants that there are with respect to broad properties of JSON, I wonder if it would be a good idea to implement a JSON parser generator.

In 2022, I spend some time looking at JSON parser for the ESP and I discovered that most libraries build an object structure. When processing a HTTP response, you first need to store the retrieved data into a string before it can be parsed into a tree of objects, before you can start parsing the contents of the response. This solution requires a lot of memory allocations. I started developing a solution that would be called from the HTTP request callback and immediately store the result of the response in the final a memory structures. See: https://github.com/FransFaase/ParsingJSONforHTTPClient

Re:Jsonifier, The Fastest and A New JSON Parsing/Serializing... by realtimechris on Tuesday November 21, 2023 @02:27PM (#38368674)
As you can see - the parser/serializer I've developed uses the minimal possible memory allocations. Nice parser though.