public class SimpleJsonValue extends Object implements JsonValue, Serializable
Constructor and Description |
---|
SimpleJsonValue(com.fasterxml.jackson.databind.JsonNode jsonNode) |
SimpleJsonValue(String value) |
SimpleJsonValue(String value,
boolean validate) |
Modifier and Type | Method and Description |
---|---|
JsonValue |
get(int index) |
JsonValue |
get(String filedName) |
Boolean |
getAsBoolean() |
Number |
getAsNumber() |
String |
getAsString() |
boolean |
isJsonArray() |
boolean |
isJsonNull() |
boolean |
isJsonObject() |
boolean |
isJsonPrimitive() |
int |
size() |
String |
toString() |
public SimpleJsonValue(String value)
public SimpleJsonValue(String value, boolean validate)
public SimpleJsonValue(com.fasterxml.jackson.databind.JsonNode jsonNode)
public boolean isJsonPrimitive()
isJsonPrimitive
in interface JsonValue
public boolean isJsonArray()
isJsonArray
in interface JsonValue
public boolean isJsonObject()
isJsonObject
in interface JsonValue
public boolean isJsonNull()
isJsonNull
in interface JsonValue
public Boolean getAsBoolean()
getAsBoolean
in interface JsonValue
public Number getAsNumber()
getAsNumber
in interface JsonValue
public String getAsString()
getAsString
in interface JsonValue
Copyright © 2024 Alibaba Cloud Computing. All rights reserved.