deploy: 94fe31eb9b
This commit is contained in:
1 parent
41c601a7d1
commit
d2e264bd84
1400 files changed
+11859
-5440
No files matched your search
@@ -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
|
||||
|
||||
Reference in new issue
Block a user