serializeOptList

Serializes a List containing objects that extend ModelObject into a JSONArray.

Return

The JSONArray representing the list of ModelObjects.

Parameters

modelList

The list to be serialized.

serializer

The serializer of the ModelObject class to be used.

The type o the ModelObject class to be serialized from.