skip to Main Content

I need to parse particular json file but stucked

There are json file with variable quantity of elements describing the keywords. The following is the typical example: {"keywords":[{"keyword":"halloween","score":0.9621220167107003}, {"keyword":"pumpkin","score":0.9527655356551675}, {"keyword":"nature","score":0.8530320061364176}, {"keyword":"animal","score":0.7936456829239327}],"status":"ok"} The script should parce this json and I need to get a line with keywords formatted as following:…

VIEW QUESTION

Json – Merge array of an object based on a common field

I have an object that looks like as follows: [ { "Net_Amount": 499, "Date": "2022-01-09T18:30:00.000Z", "Scheme_Name": "CUSTOMERWINBACKJCA01", "Month": "Jan" }, { "Net_Amount": 902, "Date": "2022-01-09T18:30:00.000Z", "Scheme_Name": "CUSTOMERWINBACKJCA02", "Month": "Jan" }, { "Net_Amount": 1860, "Date": "2022-10-01T18:30:00.000Z", "Scheme_Name": "CUSTOMERCONNECTJCA", "Month": "Oct" },…

VIEW QUESTION

Json – Update fields from string in JQ

I have a bash $string containing the values: abc,def and a file.json looking like this: [ { "loc": "51.12345, 12.12345", "city": "CityName1" }, { "loc": "65.12345, 15.12345", "city": "CityName2" } ] I'm trying to update the city field with the…

VIEW QUESTION
Back To Top
Search