app / sg.edu.ntu.scse.cz2006.gymbuddies.util / JsonHelper

JsonHelper

object JsonHelper

Helper class to store common methods to handle JSON files

For sg.edu.ntu.scse.cz2006.gymbuddies.util in Gym Buddies!

Author
Kenneth Soh

Since
2019-09-17

Functions

readFromRaw

Reads a JSON file provided by resId that is found from a resource in the /res/raw folder

fun readFromRaw(context: Context, resId: Int): String