Versions Compared

Key

  • This line was added.
  • This line was removed.
  • Formatting was changed.
Comment: Migrated to Confluence 5.3

The JSON protocol handler parses JSON documents.

Options

none

Example

PQL

Code Block
themeEclipse
languagejavascript
titleJSON Protocol Handler
linenumberstrue
input = ACCESS({source='JSON', wrapper='GenericPush',
transport='File',protocol='JSON',
  dataHandler='Tuple',options=[],
  schema=[
    ['symbol','String'],
    ['points','Double'] ]
})

CQL

Code Block
themeEclipse
languagesql
titleJSON Protocol Handler
linenumberstrue
CREATE STREAM line (symbol String, points Double)   
    WRAPPER 'GenericPush'
    PROTOCOL 'JSON'
    TRANSPORT 'File'
    DATAHANDLER 'Tuple'