jSValueCreateJSONString top-level property

Pointer<NativeType> Function(Pointer<NativeType> ctx, Pointer<NativeType> value, int indent, Pointer<NativeType> exception) jSValueCreateJSONString
final

Creates a JavaScript string containing the JSON serialized representation of a JS value. ctx (JSContextRef) The execution context to use. value (JSValueRef) The value to serialize. indent (unsigned) 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. exception (JSValueRef*) 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 (JSStringRef) A JSString with the result of serialization, or NULL if an exception is thrown.

Implementation

final Pointer Function(
    Pointer ctx,
    Pointer value,
    int indent,
    Pointer
        exception) jSValueCreateJSONString = JscFfi.lib
    .lookup<NativeFunction<Pointer Function(Pointer, Pointer, Int32, Pointer)>>(
        'JSValueCreateJSONString')
    .asFunction();