0
I have 2 json with the following structure and would like to put them in the same order through id. It is only an example the 2 json originally has more than 1000 lines but follow this same structure.
{
"data":{
"json_1":[
{
"id":123,
"name":"Lucas"
},
{
"id":145,
"name":"Estevam"
}
]
}
}
{
"data":{
"json_2":[
{
"id":145,
"name":"Estevam"
},
{
"id":123,
"name":"Lucas"
}
]
}
}
How json 2 should look:
{
"data":{
"json_2":[
{
"id":123,
"name":"Lucas"
},
{
"id":145,
"name":"Estevam"
}
]
}
}
You want to organize by ID order or just want to organize this specific case same?
– Lucas Módolo
put an example of the expected result because it is not clear
– Ricardo Pontual
@Lucasmódolo By ID, as I said in my current issue these 2 json are just one example, the original has + 1000 lines but follow the same structure. I hope with an example I understand better.
– Lucas Estevam
@Ricardopontual Pus.
– Lucas Estevam
@Lucasestevam Responded.
– Lucas Módolo