You signed in with another tab or window. Reload to refresh your session.You signed out in another tab or window. Reload to refresh your session.You switched accounts on another tab or window. Reload to refresh your session.Dismiss alert
Retrieves string value from JSON object. If name is of different type (i.e. integer) then string representation will be returned.
Returns
TRUE if element has been found, otherwise FALSE.
Example
JSON json={0};
if ( !JSON_FROM_STRING(&json, some_string) )
OUT("some_string is not a JSON");
else
{
char value[256];
if ( !JSON_GET_STR(&json, "name", value, 255) )
OUT("Couldn't get name");
elseOUT("<p>Name: %s</p>", value);
}