pulsatrix 1.1.0
Loading...
Searching...
No Matches
json.hpp File Reference

A small strict JSON value, parser and deterministic writer (RFC 8259). More...

#include <cstdint>
#include <string>
#include <string_view>
#include <utility>
#include <vector>
Include dependency graph for json.hpp:
This graph shows which files directly or indirectly include this file:

Go to the source code of this file.

Classes

class  pulsatrix::JsonValue
 One JSON value: null, a boolean, a number, a string, an array or an object. More...
 

Namespaces

namespace  pulsatrix
 

Functions

JsonValue pulsatrix::ParseJson (std::string_view text)
 Parses one JSON document.
 
std::string pulsatrix::WriteJson (const JsonValue &value)
 Writes value as JSON, indented by two spaces and ending with a newline.
 
std::string pulsatrix::WriteJsonCompact (const JsonValue &value)
 Writes value as JSON on one line, with no whitespace and no trailing newline.
 

Detailed Description

A small strict JSON value, parser and deterministic writer (RFC 8259).