|
ascii-chat 0.6.0
Real-time terminal-based video chat with ASCII art conversion
|
Minimal JSON serialization helpers (header-only) More...
Go to the source code of this file.
Data Structures | |
| class | ascii_query::json::JsonValue |
| JSON value wrapper (can hold any JSON type) More... | |
| class | ascii_query::json::JsonArray |
| JSON array builder. More... | |
| class | ascii_query::json::JsonObject |
| JSON object builder. More... | |
Namespaces | |
| namespace | ascii_query |
| namespace | ascii_query::json |
Functions | |
| std::string | ascii_query::json::escape (const std::string &str) |
| Escape a string for JSON output. | |
Minimal JSON serialization helpers (header-only)
This provides a simple, dependency-free JSON builder for the query tool. It only supports serialization (writing), not parsing.
Example: JsonObject obj; obj.set("name", "test"); obj.set("count", 42); obj.set("active", true); std::string json = obj.toString(); // {"name":"test","count":42,"active":true}
Definition in file json.h.