The JSON protocol handler parses JSON documents.
Options
...
- json.write.metadata: Dumps the metadata
- json.write.starttimestamp: Adds the starttimestamp to the key value object under the given key
- json.write.endtimestamp: Adds the endtimestamp to the key value object under the given key
Example
PQL
Code Block | ||||||
---|---|---|---|---|---|---|
| ||||||
json = ACCESS({ source='json', wrapper='GenericPull', transport='File', protocol='JSON', dataHandler='KeyValueObject', options=[['filename','scrobbles-2006-10.json']] }) | ||||||
Code Block | ||||||
theme | Eclipse | |||||
language | javascript | title | JSON Protocol Handler||||
linenumbers | true |
...
CQL
Code Block | ||||||||
---|---|---|---|---|---|---|---|---|
| ||||||||
CREATE STREAM line (symbol String, points Double) WRAPPER 'GenericPush' PROTOCOL 'JSON' TRANSPORT 'File' DATAHANDLER 'Tuple' |