DecodeBox
Search
K
Guides
SDK Reference
Operations
Playgrounds
Operations Explorer
Auto Detection Lab
Encoding & Decoding Lab
Open DecodeBox
Theme
Menu
ON THIS PAGE
#
JSON Escape
Escapes the input so it can be embedded as a JSON string.
ID:
json-escape
Category: Data format
Aliases: escape json, stringify
#
Arguments
Argument
Type
Default
Constraints
Include the quotes
boolean
true
Off gives just the escaped body, for pasting between quotes you already typed.
Escape non-ASCII
boolean
false
Writes every character above 127 as \uXXXX, which survives a transport that is not UTF-8 clean.