ascii-chat
Binary v0.16.50-198-g78f51665f
Library lib/v0.3.2-2240-g78f51665f
Video chat in your terminal
Loading...
Searching...
No Matches
json.h File Reference

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

Macros

#define JSON_UNICODE_ESCAPE_BUFFER_SIZE   8

Functions

std::string ascii_query::json::escape (const std::string &str)
 Escape a string for JSON output.

Detailed Description

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 src/tooling/query/json.h.

Macro Definition Documentation

◆ JSON_UNICODE_ESCAPE_BUFFER_SIZE

#define JSON_UNICODE_ESCAPE_BUFFER_SIZE   8

Definition at line 20 of file src/tooling/query/json.h.

Referenced by ascii_query::json::escape().