Skip to content

JSON_ADD_STR

Jurek Muszyński edited this page Dec 19, 2021 · 4 revisions

void JSON_ADD_STR(JSON *json, const char *name, const char *str)

Description

Adds string value to JSON object.

Returns

None

Example

JSON j={0};
JSON_ADD_STR(&j, "name", "John Smith");

See more advanced example in JSON_ADD_STR_A.

Clone this wiki locally