get

public T get<T>(String key, Class<T> type)(source)

Retrieves the value of the given key from the json file and converts it to the given type.

if the given type is null, it is assumed that a custom converter for the given key exists which maps the json node to the desired type.

Return

the value of the given key from the json file converted to the given type.

Parameters

key

the key of the value.

type

the class of the type to which the value should be converted.

<T>

the type to which the value should be converted.

Throws

if the given key does not exist in the json file.


public T get<T>(String key)(source)

Retrieves the value of the given key from the json file.

Return

the value of the given key from the json file.

Parameters

key

the key of the value.

<T>

the type of the value.