Skip to content

Smail/json-parser-cpp

Folders and files

NameName
Last commit message
Last commit date

Latest commit

 

History

34 Commits
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 

Repository files navigation

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.

About

No description, website, or topics provided.

Resources

License

Stars

Watchers

Forks

Releases

No releases published

Packages

No packages published