Skip to content
Advertisement

Tag: jsonlines

Read JSON Lines file as String in Python

I have a JSON Lines file that I would like to read as a string in Python. The file contains multiple JSON objects in this format: I tried the following code in Python but it returned an error. I was able to load the file as a list of dictionaries using lines = [] but apprently it doesn’t work for

Advertisement