android-components / mozilla.components.support.ktx.android.content.res / android.content.res.AssetManager / readJSONObject

readJSONObject

fun AssetManager.readJSONObject(fileName: String): JSONObject (source)

Read a file from the "assets" and create a a JSONObject from its content.

Parameters

fileName - The name of the asset to open. This name can be hierarchical.