Computer Science, asked by Ricky8853, 1 year ago

How to convert Java Array/Collection to JSON array?

Answers

Answered by namu990
0

sry i dont know these question

Answered by Oreki
2

Google provides a library named org.json.JSONArray.

The JSONArray class of the org.json package provides put( ) method.

Using this method, you can convert Java Arrays/Collections to JSON Array using the constructor of the class JSONArray.

Similar questions