loadJSONFromAsset

fun loadJSONFromAsset(context: Context, fileName: String): String?

This function is responsible for loading the JSON file from the assets folder of the application.

Return

the JSON file as a string

Parameters

context

the context of the application

fileName

the name of the JSON file