[android-components](../../index.md) / [mozilla.components.service.fxa](../index.md) / [SyncAuthInfoCache](index.md) / [toJSON](./to-j-s-o-n.md)

# toJSON

`fun `[`SyncAuthInfo`](../../mozilla.components.concept.sync/-sync-auth-info/index.md)`.toJSON(): <ERROR CLASS>` [(source)](https://github.com/mozilla-mobile/android-components/blob/master/components/service/firefox-accounts/src/main/java/mozilla/components/service/fxa/SyncAuthInfoCache.kt#L31)

Overrides [SharedPreferencesCache.toJSON](../../mozilla.components.support.base.utils/-shared-preferences-cache/to-j-s-o-n.md)

A conversion method from [T](../../mozilla.components.support.base.utils/-shared-preferences-cache/index.md#T) into a [JSONObject](#).

