Class JsonNumber
- java.lang.Object
-
- com.atlassian.confluence.json.json.JsonNumber
-
-
Constructor Summary
Constructors Constructor Description JsonNumber(Number num)
-
Method Summary
All Methods Instance Methods Concrete Methods Modifier and Type Method Description Stringserialize()Returns a JSON-format string representation of this object.
-
-
-
Constructor Detail
-
JsonNumber
public JsonNumber(Number num)
-
-
Method Detail
-
serialize
public String serialize()
Description copied from interface:JsonReturns a JSON-format string representation of this object.The string must evaluate in a Javascript engine; i.e. it must be a valid RHS for the Javascript expression: { data : RHS }
Thus, nulls, booleans, numbers, strings, arrays and objects should be supported by implementing classes.
Closures must not be returned with this method.
- Specified by:
serializein interfaceJson- Returns:
- json-format representation of this object
- See Also:
- RFC 4627 - JSON specification
-
-