public class JsonUtil extends Object
Specific JSON to Java entity mapping :
Constructor and Description |
---|
JsonUtil() |
Modifier and Type | Method and Description |
---|---|
static <R> R |
getValue(javax.json.JsonValue value)
Gets the key value from the
JsonValue . |
static String |
getValue(String name,
javax.json.JsonObject jsonObject)
Gets the value of the specified key from the
JsonObject |
static List<String> |
getValues(String name,
javax.json.JsonObject jsonObject)
Parses the specified key value from the
JsonObject into a collection of strings. |
public static List<String> getValues(String name, javax.json.JsonObject jsonObject)
JsonObject
into a collection of strings.name
- the header or claim namejsonObject
- the JSON object representing the headers set or the claims set.public static <R> R getValue(javax.json.JsonValue value)
JsonValue
.R
- the generic type as value could be an object, array, number, string or boolean value.value
- the JsonValue which is to be parsed.public static String getValue(String name, javax.json.JsonObject jsonObject)
JsonObject
name
- the key whose value is to be retrieved.jsonObject
- the JSON object representing headers or claims set.Copyright © 2015. All rights reserved.