Skip to content

Latest commit

 

History

History
33 lines (23 loc) · 574 Bytes

README.md

File metadata and controls

33 lines (23 loc) · 574 Bytes

JSON Parser

A JSON parser for modern C++.

Usage

C++

#include <JSONParser.h>

int main() {
    std::string_view json = "[1, 2, true, null, { \"key\": \"value\" }]";
    if (std::optional<json::Value> json_value = json::parse_value(json); json_value.has_value()) {
        // ...
    }
}

CMake

add_executable(example example.cpp)

add_subdirectory(json-parser-cpp)
target_link_libraries(example PUBLIC JSONParser::JSONParser)

Backlog

  • Parse JSON.
  • Improve error handling.
  • Add support for indexing a JSON object.