Actions13
Clean Object Keys
AI-generatedSummary
Convert all keys of input JSON objects to either snake_case or camelCase format as specified, optionally tracking changes and providing debug information.
Inputs
- Key Format (required) — Selects the target case format for all keys: 'snake_case' converts keys like 'firstName' to 'first_name', while 'camelCase' converts 'first_name' to 'firstName'.
- Options — Optional settings including case insensitive field matching, whether to continue processing on individual item failures, debug mode for detailed processing info, option to skip items where no changes occur, and whether to track and output changes made to keys.
Output shape
a list of JSON objects, each with all keys transformed to the chosen case format
If 'Track Changes' option is enabled, the output items will include a _changes field listing key changes. If 'Skip Unchanged' is enabled, items with no key changes will be omitted from the output.
Examples
Example 1: Convert object keys to snake_case with changes tracked
Key Format = snake_case, Options.trackChanges = true