我从服务器得到一个像这样的json响应:
{ "Response": { "FirstName": "John","LastName": "Smith","NickNames": { "NameOne": "Johnny","NameTwo": "JohnS","NameThree": "Smithy" },"Success": true,"Errors": [] } }
有没有办法通过一个函数来运行这个响应,以便每个键值对的键都是camelCase?
所以输出看起来像:
{ "response": { "firstName": "John","lastName": "Smith","nickNames": { "nameOne": "Johnny","nameTwo": "JohnS","nameThree": "Smithy" },"success": true,"errors": [] } }
如果有人能指出我正确的方向,那将是伟大的.
谢谢.