name | JSON Stringify |
version | v1.0.1 |
DockerHub | weevenetwork/json-stringify |
authors | Paul Gaiduk |
Accepts an arbitrary JSON object, and returns the stringified version.
Environment Variables | type | Description |
---|---|---|
OUTPUT_LABEL | string | The output label of the resulting string. |
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 |
The following are module dependencies:
- bottle
- requests
The following are developer dependencies:
- pytest
- flake8
- black
Input to this module can be any JSON
[
{
"frequency": 270,
"magnitude": 2
},
{
"frequency": 6.135,
"magnitude": 25.1
}
]
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}]"
}