Serializes a List of integers to a JSONArray.
The populated JSONArray. Could be null.
The List of integers to be serialized.