public class ObjectConversionUtil extends Object
Jackson
logic
Note: This class is not a part of the public API and is subject to change. Do not use it in your own code
Modifier and Type | Method and Description |
---|---|
static boolean |
isJson(String value)
Gets whether the given string value represents a valid JSON object
|
static com.fasterxml.jackson.databind.JsonNode |
toNodeTree(String value)
Parses the provided string value that expectedly represents a JSON into a
JsonNode object |
static Map<String,Object> |
toPropertyMap(Object value)
Analyzes the structure of the given Java entity and converts its available methods and accessors into the
property map.
|
public static boolean isJson(String value)
value
- A nullable string valuepublic static com.fasterxml.jackson.databind.JsonNode toNodeTree(String value) throws IOException
JsonNode
objectvalue
- String value; a non-null string is expectedJsonNode
valueIOException
- if the conversion was not possible or failedpublic static Map<String,Object> toPropertyMap(Object value)
Jackson
serializer would findvalue
- An arbitrary objectCopyright © 2024 Exadel, Inc.. All rights reserved.