fix(minor): expose limited methods of json module
This commit is contained in:
parent
dc539ff21c
commit
2b8aaa5375
1 changed files with 3 additions and 1 deletions
|
|
@ -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,
|
||||
|
|
|
|||
Loading…
Add table
Reference in a new issue