title: Escape backslash in JSON encoding python
body: <p>I m trying to JSON encode the following dict. But in this case, the <code>message</code> which is actually a <a href="http://www.fileformat.info/info/unicode/char/92e/index.htm" rel="nofollow">unicode character DEVANAGARI LETTER</a>. </p>
  
  <p>So, while encoding this <code>dict</code> into a json object, it seems to escaping the backslash("\") with two backslashes("\") in <code>message</code>. </p>
  
  <p>How do I change this to just one backslash "\" after encoding it with <code>json.dumps()</code></p>
  
  <p>I m using the following <code>custom encoder</code>, to <code>encode</code> the dict to json.</p>
  
  <pre><code>class MyCustomJsonEncoder(json.JSONEncoder):
      def encode(self, obj):
          # the json obj
          count = 0
          for ob in obj:
              obj[count]['message'] = unicode(obj[count]['message']).replace("\\u","\u")
              count += 1
          return super(MyCustomJsonEncoder, self).encode(obj)
  
  [{
      'virality': '4.6%',
      'post_engaged': 150,
      'description': '',
      'post_impressions': 1631,
      'post_story': 75,
      'name': '',
      'source': '',
      'comment_count': 16,
      'link': '',
      'text': '',
      'created_time': '03:10 AM,&lt;br&gt;May 13, 2013',
      'message': '\u092e\u0941\u0930\u0932\u0940 \u0938\u093e\u0930:-     \u0939\u0947 \u092e\u0940\u0920\u0947',
      'id': u'182929845081087_572281819479219',
      'status_type': 'status',
      'likes_count': 55
  }]
  </code></pre>