Summary
Converts a value to a string.
Description
Converts a JavaScript value to a JSON string, optionally replacing values if a replacer function is specified or optionally including only the specified properties if a replacer array is specified.
Route
POST /json/stringify
Roles
admin
Parameters
DetailsExampleSchema
Name | Type | Required | Description |
---|---|---|---|
value | * | yes | The value to convert to a JSON string |
replacer | array | no | An array of String and Number objects that serve as a whitelist for selecting/filtering the properties of the value object to be included in the JSON string |
space | number | no | A number that's used to insert white space into the output JSON string for readability purposes |
Return
DetailsExampleSchema
Name | Type | Description |
---|---|---|
stringified | string | A JSON string representing the given value |