I have a JSON structure, which is small.
My requirement is to expand the JSON structure.
Example JSON structure :
'{
"CallLog":{
"Three":{
"age":100,
"name":"Sample",
"Other":100,
"Add":"Sample"
},
"One":{
"CallLogEntry":[
{
"ContryCode":{
"CountryCode":123
}
},
{
"Phone Number":{
"PhoneNumber":456
}
},
{
"Name":{
"name":456
}
}
]
},
"Two":{
"age":100,
"name":"Sample",
"Other":100,
"Add":"Sample"
}
}
}
So, i want to expand his JSON.
Lets say i want repeat "One" node 10 times, and "two" node 5 times, and then write this expanded JSON in the new JSON.
How can i do this?