ESPHome 2026.3.0-dev
Loading...
Searching...
No Matches
esphome::json::JsonBuilder Class Reference

Builder class for creating JSON documents without lambdas. More...

#include <json_util.h>

Public Member Functions

JsonObject root ()
 
SerializationBuffer serialize ()
 Serialize the JSON document to a SerializationBuffer (stack-first allocation) Uses 512-byte stack buffer by default, falls back to heap for larger JSON.
 

Detailed Description

Builder class for creating JSON documents without lambdas.

Definition at line 170 of file json_util.h.

Member Function Documentation

◆ root()

JsonObject esphome::json::JsonBuilder::root ( )
inline

Definition at line 172 of file json_util.h.

◆ serialize()

SerializationBuffer esphome::json::JsonBuilder::serialize ( )

Serialize the JSON document to a SerializationBuffer (stack-first allocation) Uses 512-byte stack buffer by default, falls back to heap for larger JSON.

Definition at line 69 of file json_util.cpp.


The documentation for this class was generated from the following files: