Convert sequences automatically to JsonArrays