Package com.ibm.streamsx.topology.json

JSON streams.

See: Description

Package com.ibm.streamsx.topology.json Description

JSON streams. JSON (JavaScript Object Notation) is a lightweight data-interchange format that can be used to exchange streams between applications implemented in different languages.

Java

Within Java the recommended stream type for JSON data is TStream<JSONObject>.
When a tuple is a JSON array the approach is to use an JSONObject with a single attribute payload containing the value (for example, an array of JSON objects}.

SPL

Within SPL the recommended stream type for JSON data is tuple<rstring jsonString>, representing serialized JSON. (see JSON). This is the convention used by the SPL toolkits com.ibm.streamsx.json and com.ibm.streamsx.inet.

Conversions

To
FromJava
(TStream<JSONObject>)
SPL
(rstring jsonString)
JavaTStream<JSONObject> JSONStreams.toSPL()
TStream<? extends JSONAble> JSONStreams.toJSON()
TStream<String> JSONStreams.deserialize()
SPLSPLStream (rstring jsonString) SPLStream.toJSON()
SPLStream (any other schema)

See Also:
http://www.json.org - JSON (JavaScript Object Notation) is a lightweight data-interchange format.
streamsx.topology 2.1 @ IBMStreams GitHub