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" } ],
your question is missing some information.
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 |
User | Count |
---|---|
2 | |
1 | |
1 | |
1 | |
1 |