|
|
constexpr StatusWithSize | pw::json_impl::WriteString (std::string_view value, char *buffer, size_t remaining) |
| |
|
constexpr char | pw::json_impl::NibbleToHex (uint8_t nibble) |
| |
|
constexpr int | pw::json_impl::EscapedStringCopy (char *destination, int copy_limit, std::string_view source) |
| |
|
constexpr StatusWithSize | pw::json_impl::WriteQuotedString (std::string_view value, char *buffer, size_t buffer_size) |
| |
|
constexpr StatusWithSize | pw::json_impl::WriteCharPointer (const char *ptr, char *buffer, size_t buffer_size) |
| |
|
template<typename T > |
| constexpr StatusWithSize | pw::json_impl::SerializeJson (const T &value, char *buffer, size_t remaining) |
| |
The pw_json module provides utilities for interacting with JSON. JSON is a structured data format that supports strings, integers, floating point numbers, booleans, null, arrays, and objects (key-value pairs).
pw::JsonBuilder is a simple, efficient utility for serializing JSON to a fixed-sized buffer. It works directly with the JSON wire format. It does not support manipulation of previously serialized data.
All JsonBuilder functions are constexpr, so may be used in constexpr and constinit statements.