ESPHome  2024.4.0
Namespaces | Typedefs | Functions
json_util.h File Reference

Go to the source code of this file.

Namespaces

 esphome
 This is a workaround until we can figure out a way to get the tflite-micro idf component code available in CI.
 
 esphome::json
 

Typedefs

using esphome::json::json_parse_t = std::function< void(JsonObject)>
 Callback function typedef for parsing JsonObjects. More...
 
using esphome::json::json_build_t = std::function< void(JsonObject)>
 Callback function typedef for building JsonObjects. More...
 

Functions

std::string esphome::json::build_json (const json_build_t &f)
 Build a JSON string with the provided json build function. More...
 
void 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. More...