Good things in life are free...
A light-weight C/C++ JSON library, relying on KISS (Keep It Stupid Simple) principle (similar to my other json library jsonlite). This time I decided to make the C version first, translating it to C++ afterwards seemed easier to me.
Yes, this library is designed to aim for fast compilation times, simplicity, ease of use and full compliance with JSON standard.
The C++ version of this library is a single-include header file, C++11 compliant, yet again relying on KISS principle. This time I decided not to use custom exceptions, also, the linter part of it is exception-free.
Both 32-bit and 64-bit Windows binaries of this library can be obtained here. The library has been compiled with MinGW GCC and should also be compatible with Microsoft's Visual C++ compiler and the others, since MinGW uses the same format for C libraries.
If you want you can compile the library yourself, just use the makefile
provided in the c
subdirectory.
- 2.0
- Make C++ version of the library expection-less
- 1.9
- Improve usability of C++ version
- 1.8.2
- Fix linter bug both in C & C++ version
- 1.8.1
- Fix strdup_s & wcsdup_s bug SEG-faulting on NULL string
- 1.8
- Fix bug with object value fetching in C version
- 1.7
- Fix bug with variable shadowing in C version
- 1.6
- Fix C binaries
- 1.5
- Make value dumping more 'beautiful', fix C library linking issues
- Make minor optimisations
- 1.4
- Fix bug in syntax checker, checker gave false positive on missing quotation mark
"
when the file contains only one string as a value - Release first C++ version
- Fix bug in syntax checker, checker gave false positive on missing quotation mark
- 1.3
- Skip NULL values when dumping object
- 1.2
- Make error code UTF-8 instead of UTF-16
- 1.1
- Minor optimisation in value type, use uint8_t instead of enum type itself
- 1.0
- Initial release
Although light testing has been done with the library, feel free to report any bugs that you may find under Issues. This project is by no means perfect.
This project is under the MIT license.