|
ESPHome 2026.11.0-dev
|
Go to the source code of this file.
Data Structures | |
| class | esphome::json::SerializationBuffer< STACK_SIZE > |
| Buffer for JSON serialization that uses stack allocation for small payloads. More... | |
| struct | esphome::json::SpiRamAllocator |
| class | esphome::json::JsonArena< N > |
| Bump allocator over a fixed buffer for a document built and serialized in one scope. More... | |
| class | esphome::json::JsonBuilder |
| Builder class for creating JSON documents without lambdas. More... | |
Namespaces | |
| namespace | esphome |
| namespace | esphome::json |
Typedefs | |
| using | esphome::json::json_parse_t = std::function<bool(JsonObject)> |
| Callback function typedef for parsing JsonObjects. | |
| using | esphome::json::json_build_t = std::function<void(JsonObject)> |
| Callback function typedef for building JsonObjects. | |
Functions | |
| JsonString | esphome::json::linked (const char *s) |
| JsonString | esphome::json::linked (const char *s, size_t len) |
| JsonString | esphome::json::linked (const std::string &s) |
| JsonString | esphome::json::linked (std::string &&)=delete |
| ProgmemStr | esphome::json::linked (ProgmemStr s) |
| SerializationBuffer | esphome::json::build_json (const json_build_t &f) |
| Build a JSON string with the provided json build function. | |
| bool | esphome::json::parse_json (const std::string &data, const json_parse_t &f) |
| Parse a JSON string and run the provided json parse function if it's valid. | |
| bool | esphome::json::parse_json (const uint8_t *data, size_t len, const json_parse_t &f) |
| Parse JSON from raw bytes and run the provided json parse function if it's valid. | |
| JsonDocument | esphome::json::parse_json (const uint8_t *data, size_t len) |
| Parse a JSON string and return the root JsonDocument (or an unbound object on error) | |
| JsonDocument | esphome::json::parse_json (const std::string &data) |
| Parse a JSON string and return the root JsonDocument (or an unbound object on error) | |
| ArduinoJson::Allocator * | esphome::json::heap_json_allocator () |
| The allocator a JsonBuilder uses by default (PSRAM first when available) | |
Variables | |
| constexpr size_t | esphome::json::JSON_POOL_BYTES = ARDUINOJSON_POOL_CAPACITY * sizeof(ArduinoJson::detail::VariantData) |
| Size of one ArduinoJson slot pool, the first allocation every document makes (1 KB on 32 bit targets) | |
| constexpr size_t | esphome::json::JSON_ARENA_SIZE = JSON_POOL_BYTES + 1152 |
| One pool plus room for copied string nodes; a 40 option select with linked options fits. | |