Uniot Core
0.8.1
Loading...
Searching...
No Matches

Lightweight JSON generation utilities for Uniot devices. More...

Collaboration diagram for JSON:

Namespaces

namespace  uniot
 Contains all classes and functions related to the Uniot Core.
 

Detailed Description

Lightweight JSON generation utilities for Uniot devices.

This file provides a minimal JSON generation library optimized for embedded systems. It allows building JSON objects and arrays incrementally by writing directly to a String buffer, minimizing memory allocation overhead.

The library supports:

Example usage:

String jsonBuffer;
uniot::JSON::Object root(jsonBuffer);
root.put("device", "esp32")
.put("temperature", 25)
.putArray("sensors").append("temp").append("humidity").close();
root.close();
// Result: {"device":"esp32","temperature":25,"sensors":["temp","humidity"]}
JSON object builder for creating key-value pairs.
Definition MicroJSON.h:73