I have test.json file having ( I cant have single backslash in the json file,let me know if any ways i can do it and I need single backslash in the output)
{"test":"value\\123"}
I need to read this content from the file and have only single backslash in the output
#load the json files
with open("details_json.json", 'r') as j:
contents = json.loads(j.read())
print(contents)
expected output is:
{"test":"value\123"}
I need to have single backslash in the output