How to ignore empty List<T>

Is it possible to ignore serialisation (json) for empty List<T> properties?

I now get:

    "errorCode": "1",
    "reasons": [],
    "message": "Cannot insert duplicates",
    "tags": []

Where the Reasons and Tags properties are List<T> properties that are initialised but are not null.

Afaik these are the only options you have for ignoring null or default values:

As @salorob mentioned JsConfig options allow to exclude only null values for List. If you want to not serialize empty lists you should write custom serialization method for your type using JsConfig<Dto>.SerializeFn

Ok thanks for these responses!