[android-components](../../index.md) / [org.mozilla.telemetry.event](../index.md) / [TelemetryEvent](index.md) / [toJSON](./to-j-s-o-n.md)

# toJSON

`open fun toJSON(): `[`String`](https://kotlinlang.org/api/latest/jvm/stdlib/kotlin/-string/index.html) [(source)](https://github.com/mozilla-mobile/android-components/blob/master/components/service/telemetry/src/main/java/org/mozilla/telemetry/event/TelemetryEvent.java#L128)

Create a JSON representation of this event for storing and sending it.

