Node: JSON Stringify

From Waltz
Revision as of 17:20, 24 July 2019 by Patrick Angle (talk | contribs)
(diff) ← Older revision | Latest revision (diff) | Newer revision → (diff)
Jump to navigation Jump to search

The JSON Stringify node allows you to convert any object, list, or map in Waltz to a String of JSON-formatted data. JSON is a standard way to communicate blobs of data, and this node allows you to convert objects in Waltz to this standard text blob format.

To reverse the effect of this node, use a JSON Mapper node.

Settings

Expected Type Details Default
input Any The object to be converted to JSON text.

Parameters

Type Details
output String Note: The parameter is read-only. A String constructed from the provided input.

Functions

There are no functions exposed by this node.

Example Usage

JSON and how is behaves is generally well documented. Given the following Map of information in Waltz…

Key Value Value Type
bestNumber 42 Number
bestFriend Dog String
offices SOJNYCSF List<String>

…we can expect Waltz to generate the following String of JSON…

{
    "bestNumber": 42,
    "bestFriend": "Dog",
    "offices": [
        "SOJ",
        "NYC",
        "SF"
    ]
}
Nodes
Devices ArtNet Input · ArtNet Output · Interactive LED Processor · NDI™ Input · NDI™ Output · OSC Input · OSC Output · Projector · SensorLink · TCP · TUIO Output · UDP Input · UDP Output · Watchout Media Server
Objects LED Tile Layout · List · Map · Random Number · Simulated Touch · Timer · Value · Wave
Operators Blend · Change · Clip · Cluster Tracker · DMX Multiverse Merge · Ease · Filter · Hold · JSON Mapper · JSON Stringify · Logic · Math · Proximity · Range · Rotate · Scale · Shear · Smooth · Touch Mapper · Translate
Scenes External Scene · Material Scene
Materials Graph · Touch Material
Scripting Script Function · Script
Comments Comment