jsonEscape
Stentor API Reference / stentor-response/src / jsonEscape
Function: jsonEscape()
jsonEscape(
json):string
Defined in: packages/stentor-response/src/compileResponse.ts:16
Necessary to JSON.parse strings with newlines that need escaping. Otherwise JSON.parse fails.
Parameters​
json​
string
Returns​
string