can anyone please help me....
I have two datawindow..
dw_1 => one rows
id = 1 , name = a
dw_2 => two rows
id = , name = a,serial_no = 001, address1= abc
id = , name = a,serial_no = 002, address1= xyz
i want to create in following format
{
"id":"1",
"name":""a,
"details":[
{
"id":"1","name":""a,"serial_no":"001", "addrees":"abc"
}
{
"id":"1","name":""a,"serial_no":"002", "addrees":"xyz"
}
]
}
i want json in followng format.
"id":"1",
"name":""a,
"details":[
{
"id":"1","name":""a,"serial_no":"001", "addrees":"abc"
}
{
"id":"1","name":""a,"serial_no":"002", "addrees":"xyz"
}
]
}