fix(minor): expose limited methods of json module

This commit is contained in:
Rushabh Mehta 2021-05-18 21:12:45 +05:30
parent dc539ff21c
commit 2b8aaa5375

View file

@ -61,7 +61,9 @@ def get_safe_globals():
out = NamespaceDict(
# make available limited methods of frappe
json=json,
json=NamespaceDict(
loads = json.loads,
dumps = json.dumps),
dict=dict,
log=frappe.log,
_dict=frappe._dict,