- TIBCO BusinessEvents®
- Standard
- Instance

# Instance.serializeToJSON()

## Signature

`String serializeToJSON (Concept instance, boolean pretty, String root)`

## Domain

ACTION

## Description

Serializes a Concept instance into an JSON string.

## Parameters

Name | Type | Description
--- | --- | ---
`instance` | `Concept` | The Concept instance to serialize.
`pretty` | `boolean` | If true, the output will be formatted for human-readability.
`root` | `String` | The name of the root element for the serialized data.

## Returns

Type | Description
--- | ---
`String` | An JSON string serialization of `instance`

## Cautions

none