When you create the following class
public class Test { private String item; private String desc;
public setItem(String value) { item = value; } public setDesc(String value) { desc = setDescription(value); } private String setDescription(String desc) { return desc; }
}
The JSON will look like {item="",desc="",description=null}
Obviously description should not be there at all. So make sure you change setDescription to something like correctDescription. Basically its a bug.
Log in to post a comment.
When you create the following class
public class Test
{
private String item;
private String desc;
}
The JSON will look like {item="",desc="",description=null}
Obviously description should not be there at all. So make sure you change setDescription to something like correctDescription. Basically its a bug.