I have this code
import json from pprint import pprint json_data=open(\'bookmarks.json\') jdata = json.load(json_data) pprint (jdata) json_data.close()
Seems there's a typo (missing colon) in the JSON dict provided by jro.
The correct syntax would be:
jdata = json.load('{"uri": "http:", "foo": "bar"}')
This cleared it up for me when playing with the code.