Json

CySimd Json Parser

class CySimdJsonParser(app, pipeline, id=None, config=None)[source]

Bases: Processor

Fast JSON parser. Expects json bytes represented as bytes as input Based on https://github.com/TeskaLabs/cysimdjson


CySimdJsonParser.__init__()[source]

Description: .


CySimd Json Parser Method

CySimdJsonParser.process(context, event: bytes)[source]

Description:

Returns

self._parser.parse(event)


Std Dict To Json Parser

class StdDictToJsonParser(app, pipeline, id=None, config=None)[source]

Bases: Processor

Description:


Std Dict To Json Parser Method

StdDictToJsonParser.process(context, event)[source]

Description:

Returns

?


Std Json To Dict Parser

class StdJsonToDictParser(app, pipeline, id=None, config=None)[source]

Bases: Processor

Description:


Std Json To Dict Parser Method

StdJsonToDictParser.process(context, event)[source]

Description:

Returns

???


Dict To JsonBytes Parser

class DictToJsonBytesParser(app, pipeline, id=None, config=None)[source]

Bases: Processor

DictToJsonBytesParser transforms a dictionary to JSON-string encoded in bytes. The encoding charset can be specified in the configuration in encoding field.

DictToJsonBytesParser.__init__()[source]

Initializes the Parameters

Parameters

appobject

Application object.

pipelinePipeline

Name of the Pipeline.

idstr, default=None,

ID of the class of config.

configJSON, or other compatible formats, default=None

Configuration file.

Dict To Json Bytes Parser Method

DictToJsonBytesParser.process(context, event)[source]

Can be implemented to return event based on a given logic.

Parameters

context :

Additional information passed to the method.

eventData with time stamp stored in any data type, usually it is in JSON.

You can specify an event that is passed to the method.