json(body: any, replacer?: any): string
Serialize an object to JSON. Useful for easily creating JSON fetch request bodies.
Parameters
body: any
The object to be serialized to JSON.
replacer?: any
The JSON.stringify replacer used when serializing.
Returns
A JSON string.