parseJsonOrAsset

fun parseJsonOrAsset(jsonOrAssetPath: String): FeatureCollection

Parses inline GeoJSON or loads an Android asset path (for example stored_asset/conus.geojson).

Use this instead of FeatureCollection.fromJson when the argument may be an asset path. Stock Mapbox GeoJSON parses the string as JSON and will crash on asset paths.