public final class JsonHelper extends Object
Constructor and Description |
---|
JsonHelper() |
Modifier and Type | Method and Description |
---|---|
static Object |
convert(AttributeConverter<? extends Object> converter,
com.fasterxml.jackson.databind.JsonNode json,
String name)
Convert a JSON attribute.
|
static Object |
get(com.fasterxml.jackson.databind.JsonNode json,
String name)
Return the field with name in JSON (a string, a boolean, a number or a node).
|
static com.fasterxml.jackson.databind.JsonNode |
getFirstNode(String text)
Return the first node of a JSON response.
|
public static com.fasterxml.jackson.databind.JsonNode getFirstNode(String text)
text
- JSON textpublic static Object get(com.fasterxml.jackson.databind.JsonNode json, String name)
json
- jsonname
- node namepublic static Object convert(AttributeConverter<? extends Object> converter, com.fasterxml.jackson.databind.JsonNode json, String name)
converter
- converterjson
- jsonname
- attribute nameCopyright © 2016. All rights reserved.