simpleson
simpleson copied to clipboard
Lightweight C++ JSON parser & serializer that is C++98 compatible with no dependencies
In one of the Linux builds in Appveyor, the build should also attempt to build Simpleson as an ESP32 library.
In certain scenarios (i.e. embedded programming), it would be beneficial to strip out the static text in an exception and replace it with an error code in order to reduce...
Memory-constrained environments would benefit from the ability to stream data as opposed to buffering the entire object.
In order to save memory during parsing, the parser can be supplied a list of keys. If the key currently being read does not match a key in the list,...
In keeping true to the goal of making simpleson simple, implementation details should be contained in the source file and not the header file. Before releasing a v2.0, implementation details...
Related to #19, JSON is designed to support Unicode. The current implementation only supports ASCII.
The following example needs to compile and return the appropriate values: ```cpp json::jobject example = json::jobject::parse("[1,2,3]") example[1] = 4; int echo = example[1]; // Should return 4 ```
When adding this repo into other one, you can't control whether to build tests or not. I have made this patch to select if you want to build the test...
The readme makes this claim: ### Multi-level Access To access elements several levels down, the get(key) and array(index) can be used for objects and arrays, respectively: std::string music_desired = example.array(0).get("hobbies").array(1).get("music");...
`std::string value = (std::string)result.get_entry("hello").value` does not exist it should be replaced with `std::string value = (std::string)result.get("hello")`