Skip to main content
edited title
Link
M.R.
  • 31.8k
  • 8
  • 96
  • 289

How to conditionally not escape strings in JSON?

Tweeted twitter.com/StackMma/status/1092573660228083712
Source Link
M.R.
  • 31.8k
  • 8
  • 96
  • 289

How to conditionally not escape strings in JSON?

If you JSON export an association with a url, it will espace the forward slashes like this:

ExportString[ <|"url" -> "http://s2d3.scene1.com/medium/94760712386071_001.jpg"|>, 
"JSON"]

enter image description here

How can I get this not to happen?