This commit is contained in:
nlohmann
2026-10-26 21:24:35 +00:00
parent 41c601a7d1
commit d2e264bd84
1400 changed files with 11859 additions and 5440 deletions
+2 -2
View File
@@ -34,7 +34,7 @@ The parser callback distinguishes the following events:
#include <string>
#include <nlohmann/json.hpp>
using json = nlohmann::json;
using nlohmann::json;
// translate a parse_event_t to a human-readable name
std::string event_name(json::parse_event_t event)
@@ -61,7 +61,7 @@ The parser callback distinguishes the following events:
int main()
{
// a small JSON text
auto text = R"({"pi": 3.141, "numbers": [1, 2]})";
const auto* text = R"({"pi": 3.141, "numbers": [1, 2]})";
// parse the text and report every event together with its depth;
// returning true keeps every value unchanged