JsonUtil

object JsonUtil

This object contains utility functions for JSON files. it can be used to load JSON files from the assets folder of the application. so you can use it to load the JSON file and parse it to Map or List of objects.

Functions

Link copied to clipboard
fun loadJSONFromAsset(context: Context, fileName: String): String?

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