public class JsonValue extends Object
| Modifier and Type | Method and Description |
|---|---|
static <T> JsonValue |
fromArray(List<T> values)
Initializes JsonValue instance with provided list of values.
|
static JsonValue |
fromBoolean(Boolean value)
Initializes JsonValue instance with provided value.
|
static JsonValue |
fromDouble(Double value)
Initializes JsonValue instance with provided value.
|
static JsonValue |
fromInteger(Integer value)
Initializes JsonValue instance with provided value.
|
static JsonValue |
fromLong(Long value)
Initializes JsonValue instance with provided value.
|
static JsonValue |
fromObject(Object value)
Initializes JsonValue instance with provided value.
|
static JsonValue |
fromString(String value)
Initializes JsonValue instance with provided value.
|
Object |
getStoredObject()
Getter for stored JSON object.
|
String |
toString()
Converts the JSON into string.
|
public static JsonValue fromString(String value)
value - The string value to initialize with.public static JsonValue fromBoolean(Boolean value)
value - The boolean value to initialize with.public static JsonValue fromInteger(Integer value)
value - The integer value to initialize with.public static JsonValue fromLong(Long value)
value - The long value to initialize with.public static JsonValue fromDouble(Double value)
value - The double value to initialize with.public static JsonValue fromObject(Object value)
value - The double value to initialize with.public static <T> JsonValue fromArray(List<T> values)
T - The list typevalues - The list of values of given type.public Object getStoredObject()
Copyright © 2022. All rights reserved.