dreugeworst,

You could use jq, which will work no matter how the json is formatted.

Without trying it out, something like the following might work:

jq ‘.path.to.key.to.change |= 11’ file.json > file.json.tmp && mv file.json.tmp file.json

  • All
  • Subscribed
  • Moderated
  • Favorites
  • random
  • uselessserver093
  • Food
  • [email protected]
  • aaaaaaacccccccce
  • test
  • CafeMeta
  • testmag
  • MUD
  • RhythmGameZone
  • RSS
  • dabs
  • oklahoma
  • Socialism
  • KbinCafe
  • TheResearchGuardian
  • Ask_kbincafe
  • SuperSentai
  • feritale
  • KamenRider
  • All magazines