mirror of
https://github.com/ansible-collections/community.general.git
synced 2026-05-08 14:22:46 +00:00
Also add 'null' as a possible JSON value
This commit is contained in:
@@ -45,6 +45,7 @@ def safe_eval(expr, locals={}, include_exceptions=False):
|
|||||||
# eg. JSON booleans are unknown to python eval()
|
# eg. JSON booleans are unknown to python eval()
|
||||||
JSON_TYPES = {
|
JSON_TYPES = {
|
||||||
'false': False,
|
'false': False,
|
||||||
|
'null': None,
|
||||||
'true': True,
|
'true': True,
|
||||||
}
|
}
|
||||||
|
|
||||||
|
|||||||
Reference in New Issue
Block a user