|
Yes, you can have your JSON output in a format that You will specify, Example Data: John is 25 years old and studies computer science at university. His address is 123 Main St, Anytown 12345 Format that you want will look something like this, {
"format": {
"name": { "type": "string" },
"age": { "type": "number" },
"isStudent": { "type": "boolean" },
"courses": {
"type": "array",
"items": { "type": "string" }
},
"address": {
"type": "object",
"properties": {
"street": { "type": "string" },
"city": { "type": "string" },
"zipcode": { "type": "string" }
}
}
}
} ------ Output, {
"name": "John",
"age": 25,
"isStudent": true,
"courses": ["computer science"],
"address": {
"properties": {
"street": "123 Main St",
"city": "Anytown",
"zipcode": "12345"
}
}
} |