i have a file "stats.json" with the following initial structure"
[{
"price": 66.55,
"created": "2018-02-24T14:32:57"
}]
With a bash/curl script i take every 10 minutes data from an api and save it to "temp.json"
{
"price": 88.55,
"created": "2018-02-24T15:32:57"
}
I would like to merge the temp.json (which is updated every 10min) and to fill the stats.json file. I tried to do it with "jq" but without success.