getJson

static JsonElement getJson(String name)

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

Return

the resource as a json object

Parameters

name

the resource name

static T getJson<T>(String name, Class<T> type)

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