readJson

inline fun <V> readJson(path: ResourcePath<ResourceType.JsonFile>, json: Json = Json): V?

Deserializes the JSON content of the file under path in the resource pack to V using json, or returns null if the file does not exist.