JSONStreams.ToJSON (Java Application API for IBM Streams)
Date: 2020-08-07

com.ibm.streamsx.topology.json

## Class JSONStreams.ToJSON<T extends JSONAble>

- java.lang.Object
- - com.ibm.streamsx.topology.json.JSONStreams.ToJSON<T>

- All Implemented Interfaces:
    Function<T,com.ibm.json.java.JSONObject>, java.io.Serializable
  Enclosing class:
    JSONStreams

      public static final class JSONStreams.ToJSON<T extends JSONAble>
      extends java.lang.Object
      implements Function<T,com.ibm.json.java.JSONObject>

  Function to convert a `JSONAble` tuple to a `JSONObject`, using `JSONAble.toJSON()`.
  See Also:
    Serialized Form

- - ### Constructor Summary

    Constructors
    Constructor and Description
    `ToJSON()`

  - ### Method Summary

    All Methods Instance Methods Concrete Methods
    Modifier and Type | Method and Description
    --- | ---
    `com.ibm.json.java.JSONObject` | `apply(JSONAble v1)`

    - ### Methods inherited from class java.lang.Object

      `clone, equals, finalize, getClass, hashCode, notify, notifyAll, toString, wait, wait, wait`

- - ### Constructor Detail

    - #### ToJSON

          public ToJSON()

  - ### Method Detail

    - #### apply

          public com.ibm.json.java.JSONObject apply(JSONAble v1)

      Specified by:
        `apply` in interface `Function<T extends JSONAble,com.ibm.json.java.JSONObject>`