Sign inSign up

beetaone/json-stringify

By beetaone

Updated almost 2 years ago

Image
0

151

beetaone/json-stringify repository overview

JSON Stringify

nameJSON Stringify
versionv1.0.1
DockerHubbeetaone/json-stringify
authorsPaul Gaiduk

Table of Content


Description

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

Environment Variables

Environment VariablestypeDescription
OUTPUT_LABELstringThe output label of the resulting string.
Module Specific
Set by the beetaone Agent on the edge-node
Environment VariablestypeDescription
MODULE_NAMEstringName of the module
MODULE_TYPEstringType of the module (Input, Processing, Output)
INGRESS_HOSTstringHost where app is running
INGRESS_PORTstringPort where app is running
EGRESS_URLSstringHTTP 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}]"
}

Tag summary

Content type

Image

Digest

sha256:765444738

Size

49.1 MB

Last updated

almost 2 years ago

docker pull beetaone/json-stringify:v1.0.1