How to properly json read json file in Python? or What's the best way to json read json file without

18 Replies, 1409 Views

OP here—wow, thanks for all the tips! Didn’t realize trailing commas were such a big deal. Ran my file through JSONLint and found a bunch of issues.

Also, the `encoding='utf-8'` trick worked! Still getting one weird error though—what if the file has single quotes instead of double? Do I *have* to replace them all, or is there a lazy fix?

(And yeah, `json5` looks awesome—gonna try that next!)

Messages In This Thread



Users browsing this thread: 1 Guest(s)