Package com.prineside.tdi2.utils
Class JsonHandler
java.lang.Object
com.prineside.tdi2.utils.JsonHandler
-
Field Summary
Fields -
Method Summary
Modifier and TypeMethodDescriptionstatic JsonValuecloneJsonValue(JsonValue value) com.fasterxml.jackson.databind.json.JsonMapperstatic JsonHandleri()static booleanisJsonFile(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 JsonValuestatic voidsetJsonValue(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.
-