The project is in a healthy, maintained state
Command line tool for anonymizing JSON values while preserving structure.
2005
2006
2007
2008
2009
2010
2011
2012
2013
2014
2015
2016
2017
2018
2019
2020
2021
2022
2023
2024
2025
2026
 Dependencies

Runtime

>= 1.2.3, < 2
>= 2.20, < 3
 Project Readme

dorian-anonymize-json

Anonymize JSON values while preserving the JSON shape.

Install

gem install dorian-anonymize-json

Also included in the aggregate gem:

gem install dorian

Usage

anonymize-json [json ...] [file ...]

Run anonymize-json -h for generated option details and anonymize-json -v for the installed version.

Notes

  • Strings keep their letter/digit pattern, numbers become zeroes, booleans become false, and arrays/hashes keep their structure.

Examples

Anonymize inline JSON

anonymize-json '{"name":"Secret123","active":true}'