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

readFromRaw

@JvmStatic fun readFromRaw(context: Context, @RawRes resId: Int): String

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

Parameters

context - Context The application context

resId - Int Raw resource to extract the JSON file from

Return
String The JSON String