Format (pretty print) or minify JSON via free REST API. Returns formatted JSON. Perfect for developers debugging APIs. No API key required!
Format (pretty print) or minify JSON via free REST API. Returns formatted JSON. Perfect for developers debugging APIs. No API key required!
Format (pretty print) or minify JSON via free REST API. Returns formatted JSON. Perfect for developers debugging APIs. No API key required!
POST https://onemail.pro/api/json
| Endpoint | Method | Description |
|---|---|---|
/api/json?action=format | POST | Format JSON |
/api/json?action=minify | POST | Minify JSON |
/api/json?action=validate | POST | Validate JSON |
// cURL
curl -X POST "https://onemail.pro/api/json?action=format" -H "Content-Type: application/json" -d '{"name":"John"}'
// JavaScript
fetch('https://onemail.pro/api/json?action=format', { method: 'POST', body: JSON.stringify({name:'John'}) })
// Format Response
{
"success": true,
"action": "format",
"result": "{\n \"name\": \"John\",\n \"age\": 30\n}",
"originalSize": 24,
"formattedSize": 38
}
// Validate Response
{
"success": true,
"action": "validate",
"valid": true,
"error": null
}