I have a very complex JSON object with array of objects. I want to convert all Field names from camel case to pascal case. For example :-
Original JSON :-
{ "IsSuccess": true, "ResponseDate": "2019-02-20T11:42:11.963Z", "Result": { "RecordCount": "abc123", "BillDetailsList": [ { "SourceSystem": "abc123", "BillAmount": "abc123", "BillCreationDate": "abc123" }, { "SourceSystem": "abc123", "BillAmount": "abc123", "BillCreationDate": "abc123" } ] } }
New JSON :-
{ "isSuccess": true, "responseDate": "2019-02-20T11:42:11.963Z", "result": { "recordCount": "abc123", "billDetailsList": [ { "sourceSystem": "abc123", "billAmount": "abc123", "billCreationDate": "abc123" }, { "sourceSystem": "abc123", "billAmount": "abc123", "billCreationDate": "abc123" } ] } }
Please help with a Javascript to convert all such JSON Objects.