Back
Syntax
Study
Editor
Mode:
HTML
CSS
JavaScript
PHP
Reset
Run »
HTML / CSS / JS
# JSON → Python mapping: # object → dict # array → list # string → str # number → int or float # true/false → True/False # null → None import json data = json.loads('{"active":true,"score":9.5,"note":null,"tags":["a","b"]}') print(type(data["active"])) # bool print(type(data["score"])) # float print(data["note"] is None) # True
Result
Open