public class JSONRenderer
extends org.apache.sling.commons.json.io.JSONRenderer
Constructor and Description |
---|
JSONRenderer() |
Modifier and Type | Method and Description |
---|---|
String |
valueToString(Object value)
Make a JSON text of an Object value.
|
public String valueToString(Object value) throws org.apache.sling.commons.json.JSONException
Warning: This method assumes that the data structure is acyclical.
value
- The value to be serialized.{
(left brace) and ending
with }
(right brace).org.apache.sling.commons.json.JSONException
- If the value is or contains an invalid number.Copyright © 1982–2023 Adobe Systems Incorporated. All rights reserved.