Skip to main content
added 4 characters in body
Source Link
Fravadona
  • 880
  • 4
  • 12

IDK what the best way to do it is but this one works:

.a.b |= map(if .name == "name1" then (.param.new = "QQQ") else . end)

IDK what the best way to do it is but this one works:

.a.b |= map(if .name == "name1" then (.new = "QQQ") else . end)

IDK what the best way to do it is but this one works:

.a.b |= map(if .name == "name1" then .param.new = "QQQ" else . end)
added 4 characters in body
Source Link
Fravadona
  • 880
  • 4
  • 12

IDK what the best way to do it is but you can dothis one works:

.a.b |= map(if .name == "name1" then (.new = "QQQ") else . end)

IDK what the best way to do it is but you can do:

.a.b |= map(if .name == "name1" then (.new = "QQQ") else . end)

IDK what the best way to do it is but this one works:

.a.b |= map(if .name == "name1" then (.new = "QQQ") else . end)
Source Link
Fravadona
  • 880
  • 4
  • 12

IDK what the best way to do it is but you can do:

.a.b |= map(if .name == "name1" then (.new = "QQQ") else . end)