public class JsonToText extends Object
| Modifier and Type | Class and Description |
|---|---|
static class |
JsonToText.Options
Rendering options
|
| Constructor and Description |
|---|
JsonToText() |
| Modifier and Type | Method and Description |
|---|---|
JsonToText.Options |
options()
Return an Options object with default values
|
String |
prettyPrint(javax.json.JsonArray ja,
JsonToText.Options opt)
Pretty-print a JSONArray
|
String |
prettyPrint(javax.json.JsonObject jo,
JsonToText.Options opt)
Make a prettyprinted JSON text of this JSONObject.
|
public JsonToText.Options options()
public String prettyPrint(javax.json.JsonObject jo, JsonToText.Options opt)
Warning: This method assumes that the data structure is acyclical.
{ (left brace) and ending
with } (right brace).IllegalArgumentException - If the object contains an invalid number.public String prettyPrint(javax.json.JsonArray ja, JsonToText.Options opt)
Copyright © 2007–2021 The Apache Software Foundation. All rights reserved.