jq '
walk(
if type == "string" or type == "number" or type == "boolean"
then ""
else .
end
)
' secrets.json
Monday, September 15, 2025
Sanitize JSON: Blank Out Sensitive Content
Subscribe to:
Comments (Atom)
jq '
walk(
if type == "string" or type == "number" or type == "boolean"
then ""
else .
end
)
' secrets.json
Nestor Urquiza is a hands-on technologist, security-first thinker and results-oriented business executive. An Electronics Engineer dealing with hardware, embedded/web software development, security, compliance and full business funnel process engineering. Keeping things simple and innovating top-down, from Marketing to Accounting.