Hi folks,

I am trying to parse JSON arrays and it’s getting a little crazy (for me at 
least)…

1)
If my JSON is:
{"vals":[100,500,600,700,800,200,900,300]}

I get:
+--------------------+
|                vals|
+--------------------+
|[100, 500, 600, 7...|
+--------------------+

root
 |-- vals: array (nullable = true)
 |    |-- element: long (containsNull = true)

and I am :)

2)
If my JSON is:
[100,500,600,700,800,200,900,300]

I get:
+--------------------+
|     _corrupt_record|
+--------------------+
|[100,500,600,700,...|
+--------------------+

root
 |-- _corrupt_record: string (nullable = true)

Both are legit JSON structures… Do you think that #2 is a bug?

jg





Reply via email to