Package org.odftoolkit.odfdom.changes
Class JsonOperationNormalizer
java.lang.Object
org.odftoolkit.odfdom.changes.JsonOperationNormalizer
Normalizes the content of JSONObject to make it comparable.
- Author:
- svante.schubertATgmail.com
-
Constructor Summary
-
Method Summary
-
Constructor Details
-
JsonOperationNormalizer
public JsonOperationNormalizer()
-
-
Method Details
-
asString
Make a JSON text of this JSONObject. For compactness, no whitespace is added. If this would not result in a syntactically correct JSON text, then null will be returned instead.Warning: This method assumes that the data structure is acyclical.
- Returns:
- a printable, displayable, portable, transmittable representation of the object,
beginning with
{
(left brace) and ending with}
(right brace).
-
asString
Make a JSON text of this JSONObject.For compactness, no whitespace is added. If this would not result in a syntactically correct JSON text, then null will be returned instead.Warning: This method assumes that the data structure is acyclical.
- Parameters:
jsonObject
- the jsonObject to be normalized, with an operation for each line.- Returns:
- a printable, displayable, portable, transmittable representation of the object,
beginning with
{
(left brace) and ending with}
(right brace).
-