erikriver / opengraph

A python module to parse the Open Graph Protocol
http://ogp.me/
MIT License
226 stars 82 forks source link

Fix malformed json error message #33

Closed norpol closed 2 years ago

norpol commented 6 years ago

This is a valid Python string, but the json is incorrect. See json spec:

A string is a sequence of zero or more Unicode characters, wrapped in double quotes [...]

For "simplicity" I'm creating the Python string in single quotes, arguing that the codebase already uses a mixed double- and single quoting style, anyway.

Update: Probably not necessary if https://github.com/erikriver/opengraph/pull/4/files get's merged.