1
0
Fork 0
mirror of https://github.com/ansible-collections/community.general.git synced 2024-09-14 20:13:21 +02:00

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