qb
2.0.0.0
C++17 Actor Framework
|
JSON parsing, manipulation, and serialization utilities. More...
Files | |
file | json.h |
JSON utility functions and types for the qb framework. |
Classes | |
struct | nlohmann::jsonb |
A wrapper around nlohmann::json providing a qb::jsonb type, often used for binary JSON (BSON) or similar dense representations. More... | |
struct | std::hash< qb::jsonb > |
Specialization of std::hash for qb::jsonb. More... |
Typedefs | |
using | nlohmann::pointer = json::pointer |
JSON pointer type from nlohmann::json library. | |
using | nlohmann::object = json |
Alias for the main JSON type from nlohmann::json. | |
using | nlohmann::array = json::array_t |
JSON array type from nlohmann::json. | |
using | nlohmann::string = json::string_t |
JSON string type from nlohmann::json. | |
using | nlohmann::number = json::number_integer_t |
JSON integer number type from nlohmann::json. | |
using | nlohmann::floating = json::number_float_t |
JSON floating-point number type from nlohmann::json. | |
using | nlohmann::boolean = json::boolean_t |
JSON boolean type from nlohmann::json. |
Functions | |
void | uuids::to_json (qb::json &obj, qb::uuid const &id) |
Converts a UUID to a JSON object. | |
void | uuids::from_json (qb::json const &obj, qb::uuid &id) |
Converts a JSON object to a UUID. | |
std::ostream & | operator<< (std::ostream &os, const qb::jsonb &j) |
Stream output operator for qb::jsonb. |
JSON parsing, manipulation, and serialization utilities.
Provides `qb::json`, `qb::jsonb`, and integration with the nlohmann/json library.
using nlohmann::pointer = json::pointer |
JSON pointer type from nlohmann::json library.
Used for accessing nested JSON values with specific paths
using nlohmann::object = json |
Alias for the main JSON type from nlohmann::json.
Represents a complete JSON object with various value types
using nlohmann::array = json::array_t |
JSON array type from nlohmann::json.
Represents an ordered collection of JSON values
using nlohmann::string = json::string_t |
JSON string type from nlohmann::json.
Represents a string value in JSON
using nlohmann::number = json::number_integer_t |
JSON integer number type from nlohmann::json.
Represents an integer numerical value in JSON
using nlohmann::floating = json::number_float_t |
JSON floating-point number type from nlohmann::json.
Represents a floating-point numerical value in JSON
using nlohmann::boolean = json::boolean_t |
JSON boolean type from nlohmann::json.
Represents a boolean value (true/false) in JSON
void uuids::to_json | ( | qb::json & | obj, |
qb::uuid const & | id ) |
Converts a UUID to a JSON object.
Serializes a qb::uuid into a JSON object for storage or transmission
obj | JSON object to store the UUID in |
id | UUID to serialize |
void uuids::from_json | ( | qb::json const & | obj, |
qb::uuid & | id ) |
Converts a JSON object to a UUID.
Deserializes a UUID from a JSON object
obj | JSON object containing the UUID data |
id | UUID object to populate |