Click here to Skip to main content
15,887,895 members
Please Sign up or sign in to vote.
0.00/5 (No votes)
See more:
I want to remove new line characters "\" and outer double quotes using python code.
Below is the JSON structure.



"{\"resourceType\": \"Observation\", \"status\": \"final\", \"id\": \"Tnf7t0.SP6znu2Dc1kPsron.8Qlu-yjOF792bUBX3SIbqfiRJTmZfK.seS16W01szB\", \"value\": 37, \"unit\": \"Cel\", \"effectiveDateTime\": \"2016-04-19T15:02:00Z\", \"coding\": {\"system\": \"http://loinc.org\", \"code\": \"8310-5\", \"display\": \"Body temperature\"}}",
"{\"resourceType\": \"Observation\", \"status\": \"final\", \"id\": \"Tnf7t0.SP6znu2Dc1kPsron.8Qlu-yjOF792bUBX3SIbqfiRJTmZfK.seS16W01szB\", \"value\": 37, \"unit\": \"Cel\", \"effectiveDateTime\": \"2016-04-19T15:02:00Z\", \"coding\": {\"system\": \"http://loinc.org\", \"code\": \"8716-3\", \"display\": \"Vital Signs grouping\"}}"

What I have tried:

i am looking for a python code
Posted
Updated 4-May-18 3:30am

1 solution

Python
jsonstring.replace('"', '')
 
Share this answer
 

This content, along with any associated source code and files, is licensed under The Code Project Open License (CPOL)



CodeProject, 20 Bay Street, 11th Floor Toronto, Ontario, Canada M5J 2N8 +1 (416) 849-8900