Function javascriptcore_sys::JSValueCreateJSONString [] [src]

pub unsafe extern "C" fn JSValueCreateJSONString(
    ctx: JSContextRef,
    value: JSValueRef,
    indent: c_uint,
    exception: *mut JSValueRef
) -> JSStringRef

Creates a JavaScript string containing the JSON serialized representation of a JS value.

Returns a JSString with the result of serialization, or NULL if an exception is thrown.