Convert JSON to CSV, XML, YAML, TOML, and back — in one API call.
Convert data between formats.
curl -X POST https://production-json-transform.tyzo.nodeops.app/api/transform \
-H "Content-Type: application/json" \
-d '{
"input": "json",
"output": "yaml",
"data": {"name": "NK", "skills": ["code", "deploy"]}
}'
Flatten nested JSON into dot-notation keys.
curl -X POST https://production-json-transform.tyzo.nodeops.app/api/flatten \
-H "Content-Type: application/json" \
-d '{
"data": {"user": {"name": {"first": "NK"}}},
"delimiter": "."
}'
Expand dot-notation keys back into nested objects.
curl -X POST https://production-json-transform.tyzo.nodeops.app/api/unflatten \
-H "Content-Type: application/json" \
-d '{
"data": {"user.name.first": "NK"},
"delimiter": "."
}'
Query JSON data using JMESPath expressions.
curl -X POST https://production-json-transform.tyzo.nodeops.app/api/query \
-H "Content-Type: application/json" \
-d '{
"data": {"users": [{"name": "NK", "role": "admin"}, {"name": "Bob", "role": "user"}]},
"query": "users[?role==\u0027admin\u0027].name"
}'
Compare two JSON objects and return differences.
curl -X POST https://production-json-transform.tyzo.nodeops.app/api/diff \
-H "Content-Type: application/json" \
-d '{
"original": {"name": "NK", "age": 25},
"modified": {"name": "NK", "age": 26, "city": "SF"}
}'
Validate JSON data against a JSON Schema.
curl -X POST https://production-json-transform.tyzo.nodeops.app/api/validate \
-H "Content-Type: application/json" \
-d '{
"data": {"name": "NK", "email": "[email protected]"},
"schema": {
"type": "object",
"properties": {
"name": {"type": "string"},
"email": {"type": "string", "format": "email"}
},
"required": ["name", "email"]
}
}'
| Format | Input | Output |
|---|---|---|
| JSON | Object, array, or JSON string | Pretty-printed JSON string |
| CSV | CSV string | CSV string with headers |
| XML | XML string | XML string with root element |
| YAML | YAML string | YAML string |
| TOML | TOML string | TOML string |
| Code | Description |
|---|---|
| INVALID_INPUT | Missing or invalid request field |
| INVALID_FORMAT | Unsupported format specified |
| PARSE_ERROR | Failed to parse input data |
| PAYLOAD_TOO_LARGE | Data exceeds 5MB limit |
| QUERY_ERROR | Invalid JMESPath query |
| VALIDATION_ERROR | Schema validation failed |
Powered by CreateOS