Failed to apply json.loads
to string columns when first element is '[]'
#3478
Labels
bug
Something isn't working
What language are you using?
Python
Which feature gates did you use?
Load JSON object from string with nested array.
Have you tried latest version of polars?
Yes
What version of polars are you using?
0.13.38
What operating system are you using polars on?
macOS 12.3.1
What language version are you using
Python 3.8.13
Describe your bug.
Applying
json.loads
to string column with texts like['[]', '[{"x": 1, "y": 2}, {"x": 3, "y": 4}]', '[{"x": 1, "y": 2}]']
givesPanicException
. Note that the first element of the string column is'[]'
. This is originally mentioned here.What are the steps to reproduce the behavior?
What is the actual behavior?
What is the expected behavior?
Should be no error.
The text was updated successfully, but these errors were encountered: