I want to convert json object camel case to pascal case which is receiving client

The json object in response I want to convert each field in pascal case and as a string I want the response.

Expected Response: { "projectList": [ { "projectKey": "160", "projectName": "North GF", "projectSecured": "N", "doorGroup": "2,3", "subsidyKey": "3" }

Actual Response: { "projectList": [ { "projectKey": 160, "projectname": "North GF", "projectsecured": "N", "doorgroup": "2,3", "subsidykey": "3" } ],

0 2 1,354
2 REPLIES 2

your question is missing some information.

  • What is the provided input?
  • What is the logic that you are using to convert these names?

Your questions is about converting camel case to pascal case.

But the expected response you have provided is in camelCase.

examples:

camelCase
PascalCase
snake_case