Rename every key in nested JSON in one pass, leaving the values alone.
A database column set in snake_case rarely matches a JavaScript front end that expects camelCase, and that mismatch is a constant source of small bugs. This tool walks through the whole JSON structure, including objects inside arrays, and converts every key to the target style while leaving values exactly as they were.
Keys are split into words at underscores, hyphens, dots, spaces and camel case boundaries, so any input style works. Runs of capitals, such as in userID, are treated as one word.
No. Only object keys are renamed. Strings, numbers, booleans and null stay as they are.
The later one overwrites the earlier one, as in any object. Check for keys that differ only by style, such as user_id and userId.
Yes. Use the camelCase, snake_case, kebab-case, PascalCase and dot.case converters for text and lists.