Skip to main content
Version: Next

Cloud Objects To Json

Transform a Cloud Object to JSON

Description

Serialize an instance of a Cloud Object or list of instances to JSON.

The properties of the related data types are used as properties of the JSON.

Example

CloudObjectToJSON(GPS Coordinate object) ->
"Latitude":15, "Longitude": 25," name": "GPS Coordinate" }


CloudObjectToJSON(List of GPS Coordinate objects) ->
[ { "Latitude":15, "Longitude": 25, "name": "GPS Coordinate"},
{ "Latitude": 13, "Longitude": 22, " name" : "GPS Coordinate" } ]

Inputs

  • Control Flow (Control Flow)
  • cloud object (Object): Instance of Cloud Object or List
  • properties only (Boolean): If true, only consider the properties of cloud objects.

    Otherwise, includes the relations and serialize the related cloud objects recursively.
    <u>Warning</u>: this only serializes the cloud objects already loaded in the local database.

Outputs

  • Control Flow (Control Flow)
  • result (Object): JSON object or array of objects
  • Error Flow (Error Flow): Triggered if provided source is not a cloud object or list of cloud objects