Package src :: Package com :: Package deviceatlas :: Package device :: Module device_data_parser :: Class DeviceDataParser
[frames] | no frames]

Class DeviceDataParser

Instance Methods
 
__init__(self, json_data_string)
 
parse(self)
Parses the data from the JSON file.
Method Details

parse(self)

 

Parses the data from the JSON file.

Parse and prepare the device data from the JSON.

 {
   "$": [object]       $==Meta data                    [mandatory]
   "p": [array]        p==Property names               [mandatory]
   "v": [array]        v==Values                       [mandatory]
   "d": [array]        d==Codepoint delimiters         [mandatory]
   "t": [array]        t==Component Types              [mandatory]
   "e": [array]        e==Dynamic value extractors     [optional]
   "cg": [array]       cg==Constraint Groups           [optional]
   "c": [array]        c==Components                   [mandatory]
   "tr":[Object]      tr==Token Trie                   [mandatory]
   "i": [array]        i==Inputs                      [mandatory]
}

IMPORTANT: The above keys are ordered by the JSON Generator to be in a
predictable and optimal order. This is helpful as certain objects are
required by other objects which are loaded later.

:param json_data_string: