CHANGE-JSON-CASING
change-json-casing provides the easy and reliable way of changing the casing of keys for the whole JSON data.
Available Conversion Functions:
- toCamelCase()
- toLowerCase()
- toUpperCase()
How to use?
Install the package
npm install change-json-casing
Pass the complete array or object as a parameter to the desired function
import { toCamelCase } from 'change-json-casing';
const result = toCamelCase([{ Name: 'Test', UserId: 123 }])
result
[{"name":"Test","userId":123}]