Closed ereday closed 7 years ago
This is because the file contains one example per line represented by a JSON object. This makes it easier to open the file in a text editor (so it won't have to load a single, very long line of data). You can load the data using the following in Python:
data = [json.loads(line) for line in open('train.json').readlines()]
This will give you a list of Python dictionaries, each one representing an example.
When I try to parse any of json files in python or julia, I got the following error: