Ecosyste.ms: Awesome
An open API service indexing awesome lists of open source software.
https://github.com/boxbeam/csi230-final
https://github.com/boxbeam/csi230-final
Last synced: 2 days ago
JSON representation
- Host: GitHub
- URL: https://github.com/boxbeam/csi230-final
- Owner: boxbeam
- Created: 2020-12-10T20:53:57.000Z (about 4 years ago)
- Default Branch: master
- Last Pushed: 2020-12-10T20:54:41.000Z (about 4 years ago)
- Last Synced: 2024-11-05T23:09:34.229Z (about 2 months ago)
- Language: C++
- Size: 451 KB
- Stars: 1
- Watchers: 2
- Forks: 0
- Open Issues: 0
-
Metadata Files:
- Readme: README.md
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!