Monday, September 15, 2025

Sanitize JSON: Blank Out Sensitive Content

jq '
  walk(
    if type == "string" or type == "number" or type == "boolean"
    then "" 
    else . 
    end
  )
' secrets.json

No comments:

Followers