I have 2 JS(json) obects with identical keys:
{"id1" : "some1", "id2" : "some2", "id3" : "some3"}
{"id1" : "another1", "id2" : "another2", "id3" : "another3"}
I need to convert it into
[
{
"id" : "id1",
"some" : "some1",
"another" : "another1"
},
{
"id" : "id2",
"some" : "some2",
"another" : "another2"
},
{
"id" : "id3",
"some" : "some3",
"another" : "another3"
}
]
So, this is the question.
Thanks!