getJson

open fun getJson(name: String): JsonElement

Parses the specified resource with the specified name as a json file

Return

the resource as a json object

Parameters

name

the resource name


open fun <T> getJson(name: String, type: Class<T>): T

Parses the specified resource with the specified name as a json file with the specified type

Return

the resource as the specified type

Parameters

name

the resource name