Ecosyste.ms: Awesome

An open API service indexing awesome lists of open source software.

Awesome Lists | Featured Topics | Projects

https://github.com/boxbeam/csi230-final


https://github.com/boxbeam/csi230-final

Last synced: 2 days ago
JSON representation

Awesome Lists containing this project

README

        

# C++ JSON parser

## How to use

To use the C++ JSON parser, first include "json.h". This will all include json_value.

Now, usage of the library is incredibly simple. Just call parseJSON, passing a string, and a json_value will be returned.

json_value is an alias for variant. json_list is a wrapper for a vector, and similarly, json_map is a wrapper for a map.

These wrapper types both have a `get` function, used like: `map.get("hello")` and `list.get(0)` to get a value of a specific type from a specific index easily.

Happy parsing!