Easy way to do it without annotations is to use Gson library
Simple as that:
Gson gson = new Gson();
String json = gson.toJson(listaDePontos);
More Related Contents:
- No response from jsonArray request [closed]
- How can i get a JSON value [duplicate]
- JSON Array iteration in Android/Java
- how to parse JSONArray in android
- Get nested JSON object with GSON using retrofit
- Difference between JSONObject and JSONArray
- How can I parse a local JSON file from assets folder into a ListView?
- How to parse json parsing Using GSON in android
- Android JSONObject – How can I loop through a flat JSON object to get each key and value
- JSON Parsing in Android [duplicate]
- Retrofit Expected BEGIN_OBJECT but was BEGIN_ARRAY
- Sending a JSON HTTP POST request from Android
- Convert JSONArray to String Array
- What is the basic purpose of @SerializedName annotation in Android using Gson
- creating Hashmap from a JSON String
- Get a JSON object from a HTTP response
- Is it ok to save a JSON array in SharedPreferences?
- How can I parse this JSON in Android?
- Using HttpClient and HttpPost in Android with post parameters
- Convert normal Java Array or ArrayList to Json Array in android
- how to send array of params using volley in android
- How to create JSON Object using String?
- Android how to sort JSONArray of JSONObjects
- How to use parameters with HttpPost
- Android connection to localhost
- How to test if a JSONObject is null or doesn’t exist
- How to convert JSONArray to List with Gson?
- Gson turn an array of data objects into json – Android
- Endless scrolling listview not working
- Parse JSON object with string and value only