Here's my current structure:
This client I'm working for wants this:
Note lines 7 and 11. They want each element in the array of cars to have the "car" tag. Is that valid JSON formatting?
[CODE lang="json" title="My format"]{
"Showroom": {
"Address": "1 Car Lane",
"Owner": "Fred",
"Cars": [
{
"Make": "Ford",
"Model": "Figo"
},
{
"Make": "Renault",
"Model": "Duster"
}
]
}
}[/CODE]
"Showroom": {
"Address": "1 Car Lane",
"Owner": "Fred",
"Cars": [
{
"Make": "Ford",
"Model": "Figo"
},
{
"Make": "Renault",
"Model": "Duster"
}
]
}
}[/CODE]
This client I'm working for wants this:
[CODE lang="json" title="Their format" highlight="7, 11"]{
"Showroom": {
"Address": "1 Car Lane",
"Owner": "Fred",
"Cars": [
{
"Car":{
"Make": "Ford",
"Model": "Figo"
},
"Car":{
"Make": "Renault",
"Model": "Duster"
}
}
]
}
}[/CODE]
"Showroom": {
"Address": "1 Car Lane",
"Owner": "Fred",
"Cars": [
{
"Car":{
"Make": "Ford",
"Model": "Figo"
},
"Car":{
"Make": "Renault",
"Model": "Duster"
}
}
]
}
}[/CODE]
Note lines 7 and 11. They want each element in the array of cars to have the "car" tag. Is that valid JSON formatting?