Page Contents

Home > @loopback/rest > parseJson

parseJson() function

Signature:

export declare function parseJson(text: string, reviver?: (key: any, value: any) => any): any;

Parameters

Parameter Type Description
text string JSON string
reviver (key: any, value: any) => any Optional reviver function for JSON.parse

Returns:

any