DEV Community

Discussion on: Working with JSON in Python

Collapse
 
pavi2410 profile image
Pavitra Golchha • Edited

I never had the need to use any JSON module to work with JSON in Py or JS.

Collapse
 
idkravitz profile image
Dmitry Kravtsov • Edited

Well, thats a bad habbit if you do it with eval in Python. For unfiltered data ast.literal_eval is preferred, but it's still 4 times slower than builtin json.loads, so I don't see a reason to ignore it.