Event.serializeToJSON()

Signature

String serializeToJSON(SimpleEvent event, boolean pretty)

Domain

ACTION, CONDITION, BUI

Description

This function serializes the event to JSON string

Parameters

NameTypeDescription
eventSimpleEventThe input event
prettybooleanIf true, the output will be formatted for human-readability.

Returns

TypeDescription
StringSerialized JSON

Cautions

The input event cannot be null.