Package com.prineside.tdi2.utils
Class JsonHandler
java.lang.Object
com.prineside.tdi2.utils.JsonHandler
-
Field Summary
-
Method Summary
Modifier and TypeMethodDescriptionstatic JsonValue
cloneJsonValue
(JsonValue value) com.fasterxml.jackson.databind.json.JsonMapper
static JsonHandler
i()
static boolean
isJsonFile
(FileHandle fh) Does not validate the Json file contents, only checks if it is an existing file with one of the json extensions in namestatic JsonValue
static void
setJsonValue
(JsonValue what, JsonValue toWhat) Modifies 'what' in place.
-
Field Details
-
EMPTY_JSON_OBJECT
-
-
Method Details
-
i
-
getMapper
public com.fasterxml.jackson.databind.json.JsonMapper getMapper() -
orEmptyObject
-
isJsonFile
Does not validate the Json file contents, only checks if it is an existing file with one of the json extensions in name- Returns:
- true if file exists, is not a directory and has a json extension (.json / .json5 etc)
-
cloneJsonValue
-
setJsonValue
Modifies 'what' in place.
-