JSON

Specify an inline JSON cli argument or .json file on disk containing launch arguments for pipeline units (i.e., core components) and modules (i.e., user/3rd-party packages).

JSON configuration follows the same structure as YAML configuration.

Support for JSON configuration enables 10x Engines executing within web server contexts (e.g., Quarkus) to receive arguments as part of a REST request.

To pass JSON contents to the 10x Engine, escape its contents and prefix it with '@':

This example is derived from the Elastic input default elastic/config.yaml:

$ tenx @{\"tenx\":\"@apps/dev\",\"include\":[\"\/run\/modules\/input\/analyzer\/elasticsearch\/module.yaml\",\"\/run\/modules\/input\/analyzer\/elasticsearch\/elastic-input.js\"],\"elastic\":[{\"host\":\"acme.us-central1.gcp.cloud.es.io\",\"token\":\"$=TenXEnv.get(\\\"acmeElasticToken\\\")\",\"targets\":[\"acmeClient\",\"acmeServer\"]}]}