Monday, August 25, 2025

Sanitize your json config before sharing it

jq 'def scrub:
      if type == "object"
      then with_entries(.value |= scrub)
      else empty
      end;
    scrub' config.json

No comments:

Followers