Package intermine :: Module webservice :: Class DictValueParser
[hide private]
[frames] | no frames]

Class DictValueParser

source code

object --+    
         |    
    Parser --+
             |
            DictValueParser

A result parser that produces dictionaries

Parses jsonrow formatted rows into dictionaries where the key is the view string for the cell, and the value is the contents of the returned cell.

Instance Methods [hide private]
dict
parse(self, row)
Parse a row of JSON results into a dictionary
source code

Inherited from Parser: __init__

Inherited from object: __delattr__, __format__, __getattribute__, __hash__, __new__, __reduce__, __reduce_ex__, __repr__, __setattr__, __sizeof__, __str__, __subclasshook__

Properties [hide private]

Inherited from object: __class__

Method Details [hide private]

parse(self, row)

source code 

Parse a row of JSON results into a dictionary

Parameters:
  • row (a JSON string) - a row of data from a result set
Returns: dict
Overrides: Parser.parse