async-call-rpc

A lightweight JSON RPC client & server

Home > async-call-rpc > JSONEncoderOptions

JSONEncoderOptions interface

Options of JSONEncoder()

Signature:

export interface JSONEncoderOptions 

Properties

Property Modifiers Type Description
keepUndefined?   false | ‘null’ | undefined (Optional) How to handle "undefined" in the result of SuccessResponse.
replacer?   ((this: any, key: string, value: any) => any) | undefined (Optional) A function that transforms the results.
reviver?   ((this: any, key: string, value: any) => any) | undefined (Optional) A function that transforms the results. This function is called for each member of the object. If a member contains nested objects, the nested objects are transformed before the parent object is.
space?   string | number | undefined (Optional) Adds indentation, white space, and line break characters to the return-value JSON text to make it easier to read.