Function

JSValueMakeFromJSONString

Creates a JavaScript value from a JSON formatted string.

Declaration

JSValueRef JSValueMakeFromJSONString(JSContextRef ctx, JSStringRef string);

Parameters

ctx

The execution context to use.

string

The JSString containing the JSON string to be parsed.

Return Value

A JSValue containing the parsed value, or NULL if the input is invalid.