https://github.com/webern/ezjson
Wrapper for RapidJSON
https://github.com/webern/ezjson
Last synced: 26 days ago
JSON representation
Wrapper for RapidJSON
- Host: GitHub
- URL: https://github.com/webern/ezjson
- Owner: webern
- License: other
- Created: 2018-08-24T19:40:35.000Z (almost 8 years ago)
- Default Branch: master
- Last Pushed: 2018-09-25T19:21:40.000Z (over 7 years ago)
- Last Synced: 2025-01-24T21:25:20.539Z (over 1 year ago)
- Language: Objective-C
- Size: 307 KB
- Stars: 0
- Watchers: 3
- Forks: 0
- Open Issues: 0
-
Metadata Files:
- Readme: README.md
- License: LICENSE.txt
Awesome Lists containing this project
README
ezjson
======
`ezjson` presents a simple interface to json documents and strings.
### Example
```
#include "ezjson/ezjson.h"
auto jdoc = ezjson::JFactory::makeJDoc();
jdoc->loadFile( "path/to/some/file.json" );
if( jdoc->getRoot()->getType() == JValueType::array )
{
std::cout << "array" << std::endl;
}
else if( jdoc->getRoot()->getType() == JValueType::object )
{
std::cout << "object" << std::endl;
}
```
### Why?
Dunno. Just wanted a simple interface. Rapidjson is used under the hood for parsing, but the entire document is read into memory.
### TODO
* Implement shared strings and other tricks to save memory space.
* A lot more testing.
* Continuous Integration.