anyone know why a service would escape slashes (not backslashes, forward slashes) in their JSON?
like this shit is all {"url":"http:\/\/www.foobar.egg\/web\/site.html"}
anyone know why a service would escape slashes (not backslashes, forward slashes) in their JSON?
like this shit is all {"url":"http:\/\/www.foobar.egg\/web\/site.html"}
@foone if you have JSON in a script tag you need to escape it
this is somewhat analogous to saying if you are going to wear pants on your head you need to take your keys and phone out of your pockets, but hey
@foone @gloriouscow definitely not dumb, it's the shortest way to escape it. <script>window.data={"username":"</script><script>console.log('all your cookies are belong to us');//","roles":["admin"]};</script>
I think Google escapes / in JSON with a \u code, which is a bit longer, but prob more officially correct, although standard says (I think) that \<unrecognized char> is just <unrecognized char>, so it works officially everywhere.