getJson

fun getJson(inputStream: InputStream): JsonNode

Acquire a JsonNode from the given json input-stream.

Return

JSON data from the specified file.

Author

Griefed

Parameters

inputStream

The input-stream to read.

Throws

when the file could not be parsed/read into a JsonNode.


fun getJson(string: String): JsonNode

Acquire a JsonNode from the given json string.

Return

JSON data from the specified file.

Author

Griefed

Parameters

string

The string to read.

Throws

when the file could not be parsed/read into a JsonNode.


fun getJson(file: File): JsonNode

Acquire a JsonNode from the given json file.

Return

JSON data from the specified file.

Author

Griefed

Parameters

file

The file to read.

Throws

when the file could not be parsed/read into a JsonNode.


fun getJson(url: URL): JsonNode

Acquire a JsonNode from the given URL.

Return

JSON data from the specified file.

Author

Griefed

Parameters

url

URL to the data which contains your JSON.

Throws

when the file could not be parsed/read into a JsonNode.