-
Notifications
You must be signed in to change notification settings - Fork 4
JSON_FROM_STRING
Jurek Muszyński edited this page Dec 19, 2021
·
5 revisions
Converts string src to JSON object.
If there was a syntax error it returns false, otherwise true.
char str[]="{\"name\":\"John Smith\",\"age\":35,\"married\":true}";
JSON json={0};
if ( JSON_FROM_STRING(&json, str) )
OUT("str is in JSON");
else
OUT("str is not a valid JSON");