Class JsonConverter
java.lang.Object
org.apache.camel.converter.json.JsonConverter
A set of
Converter methods for camel-util-json objects.-
Method Summary
Modifier and TypeMethodDescriptionstatic org.apache.camel.util.json.JsonableconvertToJson(byte[] json, org.apache.camel.Exchange exchange) static org.apache.camel.util.json.JsonableconvertToJson(File file, org.apache.camel.Exchange exchange) static org.apache.camel.util.json.JsonableconvertToJson(InputStream is, org.apache.camel.Exchange exchange) static org.apache.camel.util.json.JsonableconvertToJson(String json, org.apache.camel.Exchange exchange) static org.apache.camel.util.json.JsonableconvertToJson(org.apache.camel.WrappedFile wf, org.apache.camel.Exchange exchange) static org.apache.camel.util.json.JsonArrayconvertToJsonArray(byte[] json, org.apache.camel.Exchange exchange) static org.apache.camel.util.json.JsonArrayconvertToJsonArray(File file, org.apache.camel.Exchange exchange) static org.apache.camel.util.json.JsonArrayconvertToJsonArray(InputStream is, org.apache.camel.Exchange exchange) static org.apache.camel.util.json.JsonArrayconvertToJsonArray(String json, org.apache.camel.Exchange exchange) static org.apache.camel.util.json.JsonArrayconvertToJsonArray(org.apache.camel.WrappedFile wf, org.apache.camel.Exchange exchange) static org.apache.camel.util.json.JsonObjectconvertToJsonObject(byte[] json, org.apache.camel.Exchange exchange) static org.apache.camel.util.json.JsonObjectconvertToJsonObject(File file, org.apache.camel.Exchange exchange) static org.apache.camel.util.json.JsonObjectconvertToJsonObject(InputStream is, org.apache.camel.Exchange exchange) static org.apache.camel.util.json.JsonObjectconvertToJsonObject(String json, org.apache.camel.Exchange exchange) static org.apache.camel.util.json.JsonObjectconvertToJsonObject(org.apache.camel.WrappedFile wf, org.apache.camel.Exchange exchange)
-
Method Details
-
convertToJsonObject
-
convertToJsonArray
-
convertToJson
-
convertToJsonObject
-
convertToJsonArray
-
convertToJson
-
convertToJsonObject
@Converter(order=7) public static org.apache.camel.util.json.JsonObject convertToJsonObject(InputStream is, org.apache.camel.Exchange exchange) throws Exception - Throws:
Exception
-
convertToJsonArray
@Converter(order=8) public static org.apache.camel.util.json.JsonArray convertToJsonArray(InputStream is, org.apache.camel.Exchange exchange) throws Exception - Throws:
Exception
-
convertToJson
@Converter(order=9) public static org.apache.camel.util.json.Jsonable convertToJson(InputStream is, org.apache.camel.Exchange exchange) throws Exception - Throws:
Exception
-
convertToJsonObject
-
convertToJsonArray
-
convertToJson
-
convertToJsonObject
-
convertToJsonArray
-
convertToJson
-