Browse Source
JSON requires that keys of objects be strings. CPython will therefore automatically quote simple types (NoneType, bool, int, float) when they are used directly as keys in JSON output. To prevent subtle bugs and emit compliant JSON, MicroPython should at least test for such keys so they aren't silently let through. Then doing the actual quoting is a similar cost to raising an exception, so that's what is implemented by this patch. Fixes issue #4790.pull/4946/head
Eric Poulsen
5 years ago
committed by
Damien George
3 changed files with 13 additions and 0 deletions
Loading…
Reference in new issue