I need to create a nested JSON object that behaves nearly identical the current JSON ARRAY but i simply want an object.
e.g.
{
“name”: “dr. cool”,
“age”: 103,
“parents” : {
“father”: “sr. dr. cool”,
“mother”: “ms. cool”
}
}
is that possible?
I need to create a nested JSON object that behaves nearly identical the current JSON ARRAY but i simply want an object.
e.g.
{
“name”: “dr. cool”,
“age”: 103,
“parents” : {
“father”: “sr. dr. cool”,
“mother”: “ms. cool”
}
}
is that possible?
Yes, just name your fields parents.mother and parents.father and they will be created as an object.