Package org.nentangso.core.service.utils
Class NtsJsonUtils
- java.lang.Object
-
- org.nentangso.core.service.utils.NtsJsonUtils
-
- All Implemented Interfaces:
org.springframework.beans.factory.InitializingBean
@Component public class NtsJsonUtils extends Object implements org.springframework.beans.factory.InitializingBean
-
-
Field Summary
Fields Modifier and Type Field Description static NtsJsonUtilsINSTANCE
-
Constructor Summary
Constructors Constructor Description NtsJsonUtils(com.fasterxml.jackson.databind.ObjectMapper objectMapper)
-
Method Summary
All Methods Static Methods Instance Methods Concrete Methods Modifier and Type Method Description voidafterPropertiesSet()static booleanexistField(com.fasterxml.jackson.databind.JsonNode node, String fieldName)static com.fasterxml.jackson.databind.JsonNodegetJsonNode(String rawString, String rootName)com.fasterxml.jackson.databind.ObjectMappergetObjectMapper()
-
-
-
Field Detail
-
INSTANCE
public static NtsJsonUtils INSTANCE
-
-
Method Detail
-
getObjectMapper
public com.fasterxml.jackson.databind.ObjectMapper getObjectMapper()
-
getJsonNode
public static com.fasterxml.jackson.databind.JsonNode getJsonNode(String rawString, String rootName) throws IOException
- Throws:
IOException
-
existField
public static boolean existField(com.fasterxml.jackson.databind.JsonNode node, String fieldName)
-
afterPropertiesSet
public void afterPropertiesSet()
- Specified by:
afterPropertiesSetin interfaceorg.springframework.beans.factory.InitializingBean
-
-