Skip to content

JSON_ADD_FLOAT

Jurek Muszyński edited this page Dec 30, 2021 · 6 revisions

void JSON_ADD_FLOAT(JSON *json, const char *name, float val)

Description

Adds float value to JSON object.

Returns

None

Example

JSON j={0};
JSON_ADD_FLOAT(&j, "income", 12345.67);

See more advanced example in JSON_ADD_STR_A.

Clone this wiki locally