Exemplo n.º 1
0
  def AsJsonString(self):
    '''A JSON string representation of this twitter.List instance.

    Returns:
      A JSON string representation of this twitter.List instance
   '''
    return simplejson.dumps(self.AsDict(), sort_keys=True)
Exemplo n.º 2
0
    def AsJsonString(self):
        '''A JSON string representation of this twitter.User instance.

    Returns:
      A JSON string representation of this twitter.User instance
   '''
        return simplejson.dumps(self.AsDict(), sort_keys=True)
Exemplo n.º 3
0
  def AsJsonString(self, allow_non_ascii=False):
    '''A JSON string representation of this twitter.Status instance.
    
    To output non-ascii, set keyword allow_non_ascii=True.

    Returns:
      A JSON string representation of this twitter.Status instance
   '''
    return simplejson.dumps(self.AsDict(), sort_keys=True,
               ensure_ascii= not allow_non_ascii )