API Documentation
POST
/api/v1/json-escapeJSON Escape
Escape or unescape JSON strings
encoders
Parameters
inputstringString to escape/unescape
actionstring'escape' or 'unescape'
Default: escape
Example Request
curl -X POST https://devtools.at/api/v1/json-escape \
-H "Content-Type: application/json" \
-d '{"input":"Line 1\nLine 2\t\"quoted\"","action":"escape"}'Example Response
{
"success": true,
"data": {
"result": "Line 1\\nLine 2\\t\\\"quoted\\\""
},
"meta": {
"processingTime": 1
}
}Try it out
Test this endpoint directly in your browser
Response
Click "Execute Request" to see the response