-
Notifications
You must be signed in to change notification settings - Fork 53
JSON_FROM_STRING
Jurek Muszyński edited this page Sep 11, 2018
·
4 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");