Port, board and/or hardware
ESP32
MicroPython version
MicroPython v1.26.1 on 2025-09-11; Generic ESP32 module with SPIRAM with ESP32
Type "help()" for more information.
Reproduction
MicroPython v1.26.1 on 2025-09-11; Generic ESP32 module with SPIRAM with ESP32
Type "help()" for more information.
import json
print(json.loads('{"a": }')) # {} — key gone, no error
print(json.loads('{"a": 1 "b": 2}')) # {'a': 1, 'b': 2}
print(json.loads('{"a": 01}')) # {'a': 1}
print(json.loads('{"a": 1,}')) # {'a': 1}
{}
{'a': 1, 'b': 2}
{'a': 1}
{'a': 1}
Expected behaviour
CPython rejects all tests
Observed behaviour
CPython rejects all tests
Additional Information
No, I've provided everything above.
Code of Conduct
Yes, I agree
Port, board and/or hardware
ESP32
MicroPython version
MicroPython v1.26.1 on 2025-09-11; Generic ESP32 module with SPIRAM with ESP32
Type "help()" for more information.
Reproduction
MicroPython v1.26.1 on 2025-09-11; Generic ESP32 module with SPIRAM with ESP32
Type "help()" for more information.
Expected behaviour
CPython rejects all tests
Observed behaviour
CPython rejects all tests
Additional Information
No, I've provided everything above.
Code of Conduct
Yes, I agree