Hacker Newsnew | past | comments | ask | show | jobs | submitlogin

> json.load(fp, , cls=None, object_hook=None, parse_float=None, parse_int=None, parse_constant=None, object_pairs_hook=None, kw)

It looks like you copied that from https://docs.python.org/3/library/json.html

Those are all optional parameters, if you don't need them it's just:

json.load(fp)

Which, to the best of my knowledge will behave just like the JS version.



Guidelines | FAQ | Lists | API | Security | Legal | Apply to YC | Contact

Search: