[][src]Function ul_sys::JSValueCreateJSONString

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

@function @abstract Creates a JavaScript string containing the JSON serialized representation of a JS value. @param ctx The execution context to use. @param value The value to serialize. @param indent The number of spaces to indent when nesting. If 0, the resulting JSON will not contains newlines. The size of the indent is clamped to 10 spaces. @param exception A pointer to a JSValueRef in which to store an exception, if any. Pass NULL if you do not care to store an exception. @result A JSString with the result of serialization, or NULL if an exception is thrown.