- TIBCO BusinessEvents®
- Standard
- Event

# Event.serializeToJSON()

## Signature

`String serializeToJSON(SimpleEvent event, boolean pretty)`

## Domain

ACTION, CONDITION, BUI

## Description

This function serializes the event to JSON string

## Parameters

Name | Type | Description
--- | --- | ---
`event` | `SimpleEvent` | The input event
`pretty` | `boolean` | If true, the output will be formatted for human-readability.

## Returns

Type | Description
--- | ---
`String` | Serialized JSON

## Cautions

The input event cannot be null.