[android-components](../../index.md) / [org.mozilla.telemetry.serialize](../index.md) / [JSONPingSerializer](index.md) / [serialize](./serialize.md)

# serialize

`open fun serialize(ping: `[`TelemetryPing`](../../org.mozilla.telemetry.ping/-telemetry-ping/index.md)`): `[`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/serialize/JSONPingSerializer.java#L18)

Overrides [TelemetryPingSerializer.serialize](../-telemetry-ping-serializer/serialize.md)

