This commit is contained in:
nlohmann committed 2026-10-26 21:24:35 +00:00
1 parent 41c601a7d1
commit d2e264bd84
1400 files changed
+11859 -5440

No files matched your search

+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