Class JsonUtil
java.lang.Object
org.apache.activemq.artemis.api.core.JsonUtil
-
Method Summary
Modifier and TypeMethodDescriptionstatic void
addToArray
(Object param, org.apache.activemq.artemis.json.JsonArrayBuilder jsonArrayBuilder) static void
addToObject
(String key, Object param, org.apache.activemq.artemis.json.JsonObjectBuilder jsonObjectBuilder) static Object
convertJsonValue
(Object jsonValue, Class desiredType) static Object[]
fromJsonArray
(org.apache.activemq.artemis.json.JsonArray jsonArray) static org.apache.activemq.artemis.json.JsonObject
mergeAndUpdate
(org.apache.activemq.artemis.json.JsonObject source, org.apache.activemq.artemis.json.JsonObject update) static org.apache.activemq.artemis.json.JsonValue
static org.apache.activemq.artemis.json.JsonObjectBuilder
objectBuilderWithValueAtPath
(String componentPath, org.apache.activemq.artemis.json.JsonValue componentStatus) static org.apache.activemq.artemis.json.JsonArray
readJsonArray
(String jsonString) static org.apache.activemq.artemis.json.JsonObject
readJsonObject
(String jsonString) readJsonProperties
(String jsonString) static org.apache.activemq.artemis.json.JsonArray
toJsonArray
(List<String> strings) static org.apache.activemq.artemis.json.JsonArray
toJSONArray
(Object[] array) static org.apache.activemq.artemis.json.JsonArrayBuilder
toJsonArrayBuilder
(byte[] byteArray) static org.apache.activemq.artemis.json.JsonObject
toJsonObject
(Map<String, ?> map) static Object
static String
truncateString
(String str, int valueSizeLimit)
-
Method Details
-
toJSONArray
public static org.apache.activemq.artemis.json.JsonArray toJSONArray(Object[] array) throws Exception - Throws:
Exception
-
fromJsonArray
public static Object[] fromJsonArray(org.apache.activemq.artemis.json.JsonArray jsonArray) throws Exception - Throws:
Exception
-
nullSafe
-
addToObject
-
addToArray
public static void addToArray(Object param, org.apache.activemq.artemis.json.JsonArrayBuilder jsonArrayBuilder) -
toJsonArray
-
toJsonObject
-
toJsonArrayBuilder
public static org.apache.activemq.artemis.json.JsonArrayBuilder toJsonArrayBuilder(byte[] byteArray) -
readJsonArray
-
readJsonObject
-
readJsonProperties
-
convertJsonValue
-
truncateString
-
truncate
-
mergeAndUpdate
public static org.apache.activemq.artemis.json.JsonObject mergeAndUpdate(org.apache.activemq.artemis.json.JsonObject source, org.apache.activemq.artemis.json.JsonObject update) -
objectBuilderWithValueAtPath
public static org.apache.activemq.artemis.json.JsonObjectBuilder objectBuilderWithValueAtPath(String componentPath, org.apache.activemq.artemis.json.JsonValue componentStatus)
-