Class JsonValueBase
- java.lang.Object
-
- com.alachisoft.ncache.runtime.JSON.JsonValueBase
-
- All Implemented Interfaces:
java.io.Serializable
- Direct Known Subclasses:
JsonArray
,JsonNull
,JsonObject
,JsonValue
public abstract class JsonValueBase extends java.lang.Object implements java.io.Serializable
An abstract class which acts as the base class for all JSON based types in NCache.- See Also:
- Serialized Form
-
-
Method Summary
All Methods Static Methods Instance Methods Concrete Methods Modifier and Type Method Description JsonDataType
getDataType()
Gets the type of the Json object.java.lang.Object
getValue()
Gets the value of the Json object.static JsonValueBase
parse(java.lang.String json)
Parses string representation of json object and returns the parsed object.java.lang.String
toJson()
Gets the string representation of the JsonValueBase.
-
-
-
Method Detail
-
getDataType
public JsonDataType getDataType()
Gets the type of the Json object.- Returns:
- The type of the Json object.
-
getValue
public java.lang.Object getValue()
Gets the value of the Json object.- Returns:
- The value of the Json object.
-
parse
public static JsonValueBase parse(java.lang.String json)
Parses string representation of json object and returns the parsed object.- Parameters:
json
- The json string.- Returns:
- The parsed JsonValueBase object.
-
toJson
public java.lang.String toJson()
Gets the string representation of the JsonValueBase.- Returns:
- The string representation of the JsonValueBase.
-
-