Skip to content

weeve-modules/json-stringify

Repository files navigation

JSON Stringify

name JSON Stringify
version v1.0.1
DockerHub weevenetwork/json-stringify
authors Paul Gaiduk

Table of Content


Description

Accepts an arbitrary JSON object, and returns the stringified version.

Environment Variables

Environment Variables type Description
OUTPUT_LABEL string The output label of the resulting string.

Module Specific

Set by the weeve Agent on the edge-node

Environment Variables type Description
MODULE_NAME string Name of the module
MODULE_TYPE string Type of the module (Input, Processing, Output)
INGRESS_HOST string Host where app is running
INGRESS_PORT string Port where app is running
EGRESS_URLS string HTTP ReST endpoint for the next module

Dependencies

The following are module dependencies:

  • bottle
  • requests

The following are developer dependencies:

  • pytest
  • flake8
  • black

Input

Input to this module can be any JSON

[
    {
        "frequency": 270,
        "magnitude": 2
    },
    {
        "frequency": 6.135,
        "magnitude": 25.1
    }
]

Output

Output of this module is that JSON converted to a string, with the OUTPUT_LABEL:

{
    "OUTPUT_LABEL": "[{\"frequency\": 270, \"magnitude\": 2}, {\"frequency\": 6.135, \"magnitude\": 25.1}]"
}

About

No description, website, or topics provided.

Resources

License

Stars

Watchers

Forks

Releases

No releases published

Packages

No packages published

Contributors 3

  •  
  •  
  •