Also add 'null' as a possible JSON value

pull/4420/head
Dag Wieers 2016-02-04 14:19:46 +01:00
parent dc48d27dd2
commit 2e171610e0
1 changed files with 1 additions and 0 deletions

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,
}