- 6 years ago
Jeon is just a string in a given format. All u need is a key and a value.
eg: {
"name":"raj"}
All u need is a key (name) and a value (raj).
put your data in the value and give it a key name and than u can parse your data however you want.
- 5 years ago
this is the way how you can convert string Variables to Json
JSONObject jsonBody = new JSONObject(); jsonBody.put("Title", "Android"); jsonBody.put("des", "Development"); final String requestBody = jsonBody.toString();
Hot Questions