Also add 'null' as a possible JSON value

This commit is contained in:
Dag Wieers 2016-02-04 14:19:46 +01:00
parent dc48d27dd2
commit 2e171610e0

View file

@ -45,6 +45,7 @@ def safe_eval(expr, locals={}, include_exceptions=False):
# eg. JSON booleans are unknown to python eval()
JSON_TYPES = {
'false': False,
'null': None,
'true': True,
}