My dilemma involves two JSON files:
F1_data.json:
{
"A": {
"time": "2015-11-26T08:20:15.130Z",
},
"B": {
"time": "2015-11-26T08:30:19.432Z",
{
"C": {
"time": "2015-11-26T08:20:15.130Z",
}
}
F2_data.json:
[{
"oaci": "A",
"latitude": "45.979722222222",
"longitude": "5.3377777777778"
},
{
"oaci": "B",
"latitude": "46.123333333333",
"longitude": "5.8047222222222"
},
{
"oaci": "C",
"latitude": "47.123333333333",
"longitude": "8.8047222222222"
},
{
"oaci": "D",
"latitude": "46.205555555556",
"longitude": "5.2916666666667"
}
]
My objective is to cross-check the "oaci" values and append latitude and longitude from F2_data.json into F1_data.json accordingly.
The desired output would be:
F1_data.json
{
"A": {
"time": "2015-11-26T08:20:15.130Z",
"latitude": "45.979722222222",
"longitude": "5.3377777777778"
},
"B": {
"time": "2015-11-26T08:30:19.432Z",
"latitude": "46.123333333333",
"longitude": "5.8047222222222"
{
"C": {
"time": "2015-11-26T08:20:15.130Z",
"latitude": "47.123333333333",
"longitude": "8.8047222222222"
}
}
I have begun working on this in JSON but welcome any pointers or assistance.