I am using net.sf.json.JSONObject. It will remove key
if my value is null while I am trying to put data in Json object using put method.
Is there any way to keep my key as it is in my object even my value is null?
for ex.
JSONObject json = new JSONObject();
json.put("myKey",null);
Then my output is : {}
But I want
output : {"myKey",""}
How can I do?