parameters: (self)
return_statement: return json.dumps(output, cls=DecimalEncoder)
docstring: Generate a basic JSON representation of the result.
  
          The base calculator generates an simple Javascript object that
          contains a single property, named "result".
  
          @return: A JSON string with a single object that contains the
              property 'result'.
docstring_summary: Generate a basic JSON representation of the result.
docstring_tokens: Generate a basic JSON representation of the result .
function: def json(self):
          """
          Generate a basic JSON representation of the result.
  
          The base calculator generates an simple Javascript object that
          contains a single property, named "result".
  
          @return: A JSON string with a single object that contains the
              property 'result'.
          """
          if not self.result is None and 'value' in self.result:
              output = {'result': self.result['value']}
          else:
              output = {'result': None}
  
          return json.dumps(output, cls=DecimalEncoder)
function_tokens: def json ( self ) : if not self . result is None and 'value' in self . result : output = { 'result' : self . result [ 'value' ] } else : output = { 'result' : None } return json . dumps ( output , cls = DecimalEncoder )