| Trees | Indices | Help |
|---|
|
|
object --+
|
GenericJSONParser
Takes a JSON string, and returns a CSV row for later import into a relational database.
|
|||
|
|||
|
|||
|
|||
|
|||
|
|||
|
|||
|
Inherited from |
|||
|
|||
REMOVE_ITEM_FROM_STRING_PATTERN = re.compile(r'
|
|||
|
|||
|
Inherited from |
|||
|
|||
x.__init__(...) initializes x; see help(type(x)) for signature
|
Given a JSON string that is one entire JSON object, parse the string into nested dicts. Derive relational column names from the (possibly nested) labels. Cooperate with the parent JSONToRelations instance to build a schema of typed SQL columns. Fill the passed-in row with values from the JSON string. The following mappings from Python values are used:
('null', None)
('boolean', <true orfFalse>)
('number', <int or Decimal>)
('string', <unicode>)
('map_key', <str>)
('start_map', None)
('end_map', None)
('start_array', None)
('end_array', None)
@param jsonStr: string of a single, self contained JSON object
@type jsonStr: String
@param row: partially filled array of values.
@type row: List<<any>>
|
Given a column name, a value and a partially filled row, add the column to the row, or set the value in an already existing row. Uses the JSONToRelation instance passed to __init__() to obtain current schema.
|
Given a label, like employee.item.name, remove the last occurrence of 'item'
|
|
|||
REMOVE_ITEM_FROM_STRING_PATTERN
|
| Trees | Indices | Help |
|---|
| Generated by Epydoc 3.0.1 on Thu Oct 3 14:52:44 2013 | http://epydoc.sourceforge.net |