Repository navigation
Releases
Releases · haiyon/fitobj
v0.2.0
Breaking Changes
- CLI now uses subcommands instead of flags
- Old:
./fitobj -input=./nested -output=./flat -reverse - New:
fitobj unflatten ./nested ./flat
New Features
- Added Cobra CLI framework with better help system
- Configuration file support (
.fitobj.yaml) - Health check endpoint for API mode (
/health)
Bug Fixes
- Fixed nested array flattening recursion issues
- Improved bracket notation parsing
- Better error handling for empty files
Migration Guide
# Old commands → New commands
-input/-output/-reverse → unflatten [input] [output]
-input/-output → flatten [input] [output]
-api -port=8080 → api --port=8080
-i18n -cleanup → i18n clean [source] [json]v0.1.1
v0.1.0
Features
- Transform nested JSON objects to flat structures and reverse
- Customizable separators for flattened keys (default: ".")
- Support for different array notations: index (items.0) and bracket (items[0])
- Simple command-line interface
- API server mode with RESTful endpoints
Installation
go install github.com/haiyon/fitobj