List<String> to JSONArray

Any one know List to JSONArray in java

I have a variable in list format I want to convert it to json array how ?

Perhaps have a look through the sources, to see how AI2 lists are handled, e.g. with tinydb ?