parameters: (self, data)
docstring: add data dictionary.
docstring_summary: add data dictionary.
docstring_tokens: add data dictionary .
function: def add_data(self, data):
          '''add data dictionary.'''
          if isinstance(data, basestring):
              try:
                  data = jsonloads(data)
              except ValueError as e:
                  if e.__str__().find('No JSON object') != -1:
                      raise SetupException('Data is not decodable as JSON.')
  
                  # try a straight eval
                  data = eval(data)
  
          self.data.append(data)
function_tokens: def add_data ( self , data ) : if isinstance ( data , basestring ) : try : data = jsonloads ( data ) except ValueError as e : if e . __str__ ( ) . find ( 'No JSON object' ) != - 1 : raise SetupException ( 'Data is not decodable as JSON.' ) # try a straight eval data = eval ( data ) self . data . append ( data )