Skip to content

Overview

jsonPlug is a post-processor module that leverages the JsonPath query language to facilitate simple modifications to the output object.
With this module it is possible to delete, add, clone and modify categories and extracted records.

Warning

The proper functioning of this module relies on the jsonpath module, which needs to be installed alongside it.

Upon installing the module in your project within Studio, the main.jr file will be automatically modified to include the following statement at its beginning:

var jsonPlug = require('modules/jsonPlug');

Note

This is the statement when you install the jsonpath module:

var jsonpath = require('modules/jsonpath');

The aforementioned statement establishes a variable containing an instance of the module, enabling its use in all event handling functions.

This module has to be invoked in the onFinalize function, as it operates on the analysis results available when this function is executed. It offers two methods: