[Python] pyarrow.json.read_json when read indent json file with report error
- Dominant language
- C++
- Stars
- 17.1k
- Forks
- 4.3k
- Avg merge
- 3d 13h
- Merged PRs (30d)
- 88
Description
### Describe the bug, including details regarding any error messages, version, and platform.
pyarrow version: 14.0.2
```
pajson.read_json("indent.json")
File "pyarrow/_json.pyx", line 308, in pyarrow._json.read_json
File "pyarrow/error.pxi", line 154, in pyarrow.lib.pyarrow_internal_check_status
File "pyarrow/error.pxi", line 91, in pyarrow.lib.check_status
pyarrow.lib.ArrowInvalid: JSON parse error: Column() changed from object to string in row 0
```
```
import pyarrow.json as pajson
pajson.read_json("indent.json")
```
when i write indent.json, i use json.dump(raw_data, fp, ensure_ascii=False, indent=4)
and then i use pajson.read_json, that bug will be report, i wonder know how to fix it.
here is my wrong json.
[wrong.json](https://github.com/apache/arrow/files/14812530/wrong.json)
### Component(s)
Python
Contributor guide
Assessment
This issue has not been assessed yet.