This is my ArrayList
ArrayList< HashMap < String,String> > list = new ArrayList<>();
which holds hashmap.
How to acquire all the hashmaps in Plain JSONArray?
We can do something like this,
ArrayList< HashMap < String,String> > list = new ArrayList<>();
and then just pass List object to JsonArray like this
JSONArray jsArray = new JSONArray(list);
thankew!
If you love us? You can donate to us via Paypal or buy me a coffee so we can maintain and grow! Thank you!
Donate Us With