There is a certain ArrayList filled with data, how do I transfer this array to the server?
JSONArray ar=new JSONArray(myArrayList); String json= ar.toString()
Use JSONObject .
JSONObject
Example:
JSONObject jsonObject = new JSONObject(); JSONArray jsonArray = new JSONArray(); try { jsonObject.put("jsonArray",jsonArray); } catch (JSONException e) { e.printStackTrace(); }
Source: https://ru.stackoverflow.com/questions/601240/More articles:How to customize {{ansible_managed}}? [closed]nodejs. unable to load scripts and stylesWebStorm. Run the project in the browserError when clicking the search button on the pageCharacters in TextArea do not save all non-text in the database, only partIcons are not coloredArray of structures, problem in realloc memoryWorking with a text file in python: finding the full stringSymbolic Computation Library for Java (like Sympy)How to get all the records from the table, if there is an array of idAll Articles
JSONArray ar=new JSONArray(myArrayList); String json= ar.toString()JSONArray ar=new JSONArray(myArrayList); String json= ar.toString()and pull? - Alexey Shimansky