I want to make a JSON object and define its keys. I will initialize values to it later. Is there any way to do that? I want something like this when i print the JSONObject before initializing values to it and after defining it:
education:{ "name":"", "year":, "qualification": }
i.e only keys are there,no values to them exist. how do i define this "education" object. i know its defination can be:
JSONObject education=new JSONObject();
but where do the keys fit in here?
education:{ "name":null, "year":null, "qualification": null }