public class Json
extends java.lang.Object
| Modifier and Type | Field and Description |
|---|---|
static java.lang.String |
DEFAULT_INDENT |
static Json |
FALSE |
static Json |
NULL |
static Json |
TRUE |
| Constructor and Description |
|---|
Json() |
| Modifier and Type | Method and Description |
|---|---|
void |
accept(Visitor visitor) |
static Json |
array(Json... values) |
java.util.List<Json> |
asArray() |
java.math.BigDecimal |
asBigDecimal() |
java.math.BigInteger |
asBigInteger() |
boolean |
asBoolean() |
double |
asDouble() |
float |
asFloat() |
int |
asInt() |
long |
asLong() |
java.util.Map<java.lang.String,Json> |
asObject() |
java.lang.String |
asString() |
protected static Json |
create(org.zalando.flatjson.Overlay overlay,
int element) |
boolean |
equals(java.lang.Object other) |
int |
hashCode() |
boolean |
isArray() |
boolean |
isBoolean() |
boolean |
isNull() |
boolean |
isNumber() |
boolean |
isObject() |
boolean |
isString() |
static Json |
object() |
static Json |
parse(java.lang.String raw) |
java.lang.String |
prettyPrint() |
java.lang.String |
prettyPrint(java.lang.String indent) |
static Json |
value(java.math.BigDecimal value) |
static Json |
value(java.math.BigInteger value) |
static Json |
value(boolean value) |
static Json |
value(double value) |
static Json |
value(float value) |
static Json |
value(int value) |
static Json |
value(long value) |
static Json |
value(java.lang.String value) |
public static final java.lang.String DEFAULT_INDENT
public static final Json NULL
public static final Json TRUE
public static final Json FALSE
protected static Json create(org.zalando.flatjson.Overlay overlay, int element)
public static Json parse(java.lang.String raw)
public static Json value(boolean value)
public static Json value(int value)
public static Json value(long value)
public static Json value(float value)
public static Json value(double value)
public static Json value(java.math.BigInteger value)
public static Json value(java.math.BigDecimal value)
public static Json value(java.lang.String value)
public static Json object()
public boolean isNull()
public boolean isBoolean()
public boolean isNumber()
public boolean isString()
public boolean isArray()
public boolean isObject()
public boolean asBoolean()
public int asInt()
public long asLong()
public float asFloat()
public double asDouble()
public java.math.BigInteger asBigInteger()
public java.math.BigDecimal asBigDecimal()
public java.lang.String asString()
public java.util.List<Json> asArray()
public java.util.Map<java.lang.String,Json> asObject()
public void accept(Visitor visitor)
public java.lang.String prettyPrint()
public java.lang.String prettyPrint(java.lang.String indent)
public boolean equals(java.lang.Object other)
equals in class java.lang.Objectpublic int hashCode()
hashCode in class java.lang.Object