public class JsonUtils extends Object
JsonUtils class.
| Modifier and Type | Field and Description |
|---|---|
static String[] |
EMPTY_SCHEMA
Constant
EMPTY_SCHEMA="new String[]{{, \"type\" : \"object\" "{trunked} |
| Constructor and Description |
|---|
JsonUtils() |
| Modifier and Type | Method and Description |
|---|---|
static JsonSchemaNode |
createSchemaNode(String text)
createSchemaNode.
|
static String |
getEmptySchema()
getEmptySchema.
|
static boolean |
isJson(String example)
isJson.
|
static String |
transformObjectToString(org.codehaus.jettison.json.JSONObject object)
transformObjectToString.
|
static String |
transformObjectToStringAndFormat(org.codehaus.jettison.json.JSONObject object)
transformObjectToStringAndFormat.
|
public static final String[] EMPTY_SCHEMA
EMPTY_SCHEMA="new String[]{{, \"type\" : \"object\" "{trunked}public static boolean isJson(String example)
isJson.
example - a String object.public static JsonSchemaNode createSchemaNode(String text)
createSchemaNode.
text - a String object.JsonSchemaNode object.public static String transformObjectToString(org.codehaus.jettison.json.JSONObject object) throws org.codehaus.jettison.json.JSONException, IOException
transformObjectToString.
object - a JSONObject object.String object.org.codehaus.jettison.json.JSONException - if any.IOException - if any.public static String transformObjectToStringAndFormat(org.codehaus.jettison.json.JSONObject object) throws org.codehaus.jettison.json.JSONException, IOException
transformObjectToStringAndFormat.
object - a JSONObject object.String object.org.codehaus.jettison.json.JSONException - if any.IOException - if any.Copyright © 2015 Mulesoft. All rights reserved.