diff --git a/frappe/modules/import_file.py b/frappe/modules/import_file.py index 336652d5b7..eb8f53d0b6 100644 --- a/frappe/modules/import_file.py +++ b/frappe/modules/import_file.py @@ -1,9 +1,10 @@ # Copyright (c) 2015, Frappe Technologies Pvt. Ltd. and Contributors # License: MIT. See LICENSE import hashlib -import json import os +import orjson + import frappe from frappe.model.base_document import get_controller from frappe.modules import get_module_path, scrub_dt_dn @@ -173,7 +174,7 @@ def read_doc_from_file(path): if os.path.exists(path): with open(path) as f: try: - doc = json.loads(f.read()) + doc = orjson.loads(f.read()) except ValueError: print(f"bad json: {path}") raise