title: Yahoo Pipes, simplejson and slashes
body: <p>Im trying to use <a href="http://www.javarants.com/2008/04/13/using-google-app-engine-to-extend-yahoo-pipes/" rel="nofollow noreferrer">http://www.javarants.com/2008/04/13/using-google-app-engine-to-extend-yahoo-pipes/</a> as inspiration, but I'm having some troubles with the output.</p>
  
  <p>Its obvious when testing with the console and the App Engine "django util simplejson":</p>
  
  <pre><code>/cygdrive/c/Program Files/Google/google_appengine/lib/django
  $ python
  Python 2.5.2 (r252:60911, Dec  2 2008, 09:26:14) 
  [GCC 3.4.4 (cygming special, gdc 0.12, using dmd 0.125)] on cygwin
  Type "help", "copyright", "credits" or "license" for more information.
  &gt;&gt;&gt; from django.utils import simplejson as json
  &gt;&gt;&gt; json.dumps('/')
  '"\\/"'
  &gt;&gt;&gt; json.dumps('http://stackoverflow.com')
  '"http:\\/\\/stackoverflow.com"
  </code></pre>
  
  <p><a href="http://microformats.org/wiki/json" rel="nofollow noreferrer">As far as I can read</a> this is ok behavior:</p>
  
  <blockquote>
    <p>In JSON only the backslash, double
    quote and ASCII control characters
    need to be escaped. Forward slashes
    may be escaped as in the URL example
    below, but do not have to be.</p>
  </blockquote>
  
  <p>But when inputting back to yahoopipes, they don't "unescape" the output and all my urls and html doesnt work.</p>
  
  <p>should I really do a </p>
  
  <pre><code>self.response.out.write(json.dumps(obj).replace('\\/','/'))
  </code></pre>
  
  <p>?</p>
  
  <p>==== Edit ===</p>
  
  <p>To my great suprise I see that newest simplejson downloaded from simplejson site doesnt do the "slash" stuff :(
  So the real issue is with app engines django.util.simplejson version?</p>
  
  <p>=== Edit again ===</p>
  
  <p>And now Ive created an issue in the tracker for it: <a href="http://code.google.com/p/googleappengine/issues/detail?id=1128" rel="nofollow noreferrer">http://code.google.com/p/googleappengine/issues/detail?id=1128</a></p>