Added
- Unified
omitconfig array to skip values:['null', 'empty', 'false']or['all'] omit_keysconfig array to always skip specific keyskey_aliasesconfig for shortening key names (saves tokens)date_formatconfig for formatting DateTime objects and ISO date stringstruncate_stringsconfig to limit string length with ellipsisnumber_precisionconfig to limit decimal places for floatsToon::diff($data)method to calculate token savings between JSON and TOONToon::only($data, $keys)method to encode only specific keys
Changed
- Replaced
omit_null_valuesboolean with flexibleomitarray (breaking change)
Removed
omit_null_valuesconfig option (use'omit' => ['null']instead)