getJarJson

fun getJarJson(file: File, entryInJar: String, objectMapper: ObjectMapper): JsonNode

Acquire a JsonNode from the specified file in the specified file.

Return

A JsonNode containing all information from the requested file in the specified jar.

Author

Griefed

Parameters

file

The file from which to get the JsonNode from.

entryInJar

The file in the jar from which to get the JsonNode form.

objectMapper

The ObjectMapper with which to parse the Json to a JsonNode.

Throws

if the file could not be opened or read from, if the file could not be read or if the json from the file could not be parsed into a JsonNode.

if an error occurs reading the file in the jar.

if an error occurs reading the file in the jar.

if the jar does not contain the specified entry.