[android-components](../../index.md) / [mozilla.components.support.base.utils](../index.md) / [SharedPreferencesCache](index.md) / [fromJSON](./from-j-s-o-n.md)

# fromJSON

`abstract fun fromJSON(obj: <ERROR CLASS>): `[`T`](index.md#T) [(source)](https://github.com/mozilla-mobile/android-components/blob/master/components/support/base/src/main/java/mozilla/components/support/base/utils/SharedPreferencesCache.kt#L40)

A conversion method from [JSONObject](#) to [T](index.md#T).

