Ecosyste.ms: Awesome
An open API service indexing awesome lists of open source software.
https://github.com/anhero/JsonBox
This is a JSON C++ library. It can write and read JSON files with ease and speed.
https://github.com/anhero/JsonBox
Last synced: 18 days ago
JSON representation
This is a JSON C++ library. It can write and read JSON files with ease and speed.
- Host: GitHub
- URL: https://github.com/anhero/JsonBox
- Owner: anhero
- License: mit
- Created: 2012-06-30T21:32:27.000Z (over 12 years ago)
- Default Branch: master
- Last Pushed: 2024-04-11T10:14:26.000Z (7 months ago)
- Last Synced: 2024-07-31T22:53:32.614Z (3 months ago)
- Language: C++
- Homepage:
- Size: 639 KB
- Stars: 112
- Watchers: 20
- Forks: 61
- Open Issues: 10
-
Metadata Files:
- Readme: readme.markdown
- License: license.txt
Awesome Lists containing this project
README
# Json Box
[JSON](http://json.org/) (JavaScript Object Notation) is a lightweight data-interchange format.
Json Box is a C++ library used to read and write JSON with ease and speed.
Things it does:
* Follows the standards established on [http://json.org/](http://json.org/)
* Read and write JSON in UTF-8
* Uses the STL streams for input and output
* Generated JSON can be indented and pretty or compact and hard-to-read
* Does not crash when the JSON input contains errors, it simply tries to interpret as much as it canThings it does not do:
* Read JSON in UTF-16 or UTF-32
* Keep the order of the members in objects (the standard doesn't require keeping the order)
* Write useful error messages when the JSON input contains errorsThe library wasn't designed with multi-threading in mind.
The class reference can be found [here](http://anhero.github.com/JsonBox).
Android
===```
mkdir build
cd build && mkdir armeabi-v7a
cd armeabi-v7a
cmake -DCMAKE_SYSTEM_NAME=Android -DCMAKE_ANDROID_NDK= \
-DCMAKE_ANDROID_ARCH_ABI=armeabi-v7a -DCMAKE_ANDROID_STL_TYPE=c++_static \
-DCMAKE_BUILD_TYPE=Release -DCMAKE_ANDROID_NDK_TOOLCHAIN_VERSION=clang \
-DCMAKE_INSTALL_PREFIX=/sources/third_party/JsonBox ../..
make install
```You should replace with the actual folder.