Line should validate that the JSON coordinates array has at least 2 elements

PR for #4