Manipulate JSON with jq

后端 未结 2 1147
既然无缘
既然无缘 2021-01-28 05:37

I have following the json file. I am trying to update a couple of properties in this file using jq

{
  \"href\" : \"http://localhost:8080/api/v1/clu         


        
2条回答
  •  梦谈多话
    2021-01-28 06:40

    Manage to do it

    jq '.items[0].properties."hfile.block.cache.size"="0.2"' initial.json > 1.json
    

提交回复
热议问题