Most people are using gson : check this
Gson gson = new Gson();
String json = gson.toJson(myObj);
More Related Contents:
- No response from jsonArray request [closed]
- JSON Array iteration in Android/Java
- Difference between JSONObject and JSONArray
- How to Parse JSON Array with Gson
- POST to Jersey REST service getting error 415 Unsupported Media Type
- How to parse json parsing Using GSON in android
- How to parse JSON Array (Not Json Object) in Android
- Convert Json Array to normal Java list
- Android REST client, Sample?
- Jersey 415 Unsupported Media Type
- POST request via RestTemplate in JSON
- REST – HTTP Post Multipart with JSON
- Sending a JSON HTTP POST request from Android
- Convert JSONArray to String Array
- what’s the correct way to send a file from REST web service to client?
- Is it ok to save a JSON array in SharedPreferences?
- Converting json string to java object?
- Using HttpClient and HttpPost in Android with post parameters
- Convert normal Java Array or ArrayList to Json Array in android
- How to create JSON Object using String?
- How to produce JSON output with Jersey 1.6 using JAXB
- Android how to sort JSONArray of JSONObjects
- How to use parameters with HttpPost
- Enforce not-null field in JSON object
- How to Get JSON Array Within JSON Object?
- Android connection to localhost
- Trying to use Spring Boot REST to Read JSON String from POST
- How to test if a JSONObject is null or doesn’t exist
- How to convert JSONArray to List with Gson?
- Retrofit GSON serialize Date from json string into java.util.date