I have just started using JSON-Lib and really like using it!
However, I do have one problem. When I create a JSON string from a class, all of the property names within the JSON object are in camelCase. How can I change this so the property names within the JSON object are in Pascal Case?
Example Java Class:
public class Business
{
private String BusinessName;
public String getBusinessName()
{
return this.BusinessName;
}
}
When the JSON object is created using JSONObject.fromObject(object).toString(), the 'BusinessName' property name is 'businessName'. I need it to be 'BusinessName'.
Thank you in advance for any replies!
If you would like to refer to this comment somewhere else in this project, copy and paste the following link:
Hello,
I have just started using JSON-Lib and really like using it!
However, I do have one problem. When I create a JSON string from a class, all of the property names within the JSON object are in camelCase. How can I change this so the property names within the JSON object are in Pascal Case?
Example Java Class:
public class Business
{
private String BusinessName;
public String getBusinessName()
{
return this.BusinessName;
}
}
When the JSON object is created using JSONObject.fromObject(object).toString(), the 'BusinessName' property name is 'businessName'. I need it to be 'BusinessName'.
Thank you in advance for any replies!
Hello?