I have file where each line is json string. I load this file to a list of strings. Is there way to convert all this strings to a list of dictionaries? json.loads() can convert only line by line. thanks
I figure out one way of doing it: L = list(expression for variable in sequence)
This should do the job:
Or you can use
mapinstead of list comprehensions as @JeffS said