[b]"Having issues with json .dump? How do you handle encoding errors?"[/b] or [b]"What's the best way to use json

18 Replies, 602 Views

Pro tip: Use `json.dump(data, f, ensure_ascii=False, indent=2)` to make the output human-readable *and* avoid encoding issues.

If you’re still stuck, paste a sample of your data here. Sometimes the problem’s a sneaky invisible char!

Messages In This Thread



Users browsing this thread: 1 Guest(s)