JSONPlugin also handles a list as return type

A list is also a valid basis for a JSON serialization. Therefore the JSONPlugin should also handle lists for return types.