Package org.apache.camel.converter.json
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
@Converter(order=1) public static org.apache.camel.util.json.JsonObject convertToJsonObject(String json, org.apache.camel.Exchange exchange) throws Exception - Throws:
Exception
-
convertToJsonArray
@Converter(order=2) public static org.apache.camel.util.json.JsonArray convertToJsonArray(String json, org.apache.camel.Exchange exchange) throws Exception - Throws:
Exception
-
convertToJson
@Converter(order=3) public static org.apache.camel.util.json.Jsonable convertToJson(String json, org.apache.camel.Exchange exchange) throws Exception - Throws:
Exception
-
convertToJsonObject
@Converter(order=4) public static org.apache.camel.util.json.JsonObject convertToJsonObject(byte[] json, org.apache.camel.Exchange exchange) throws Exception - Throws:
Exception
-
convertToJsonArray
@Converter(order=5) public static org.apache.camel.util.json.JsonArray convertToJsonArray(byte[] json, org.apache.camel.Exchange exchange) throws Exception - Throws:
Exception
-
convertToJson
@Converter(order=6) public static org.apache.camel.util.json.Jsonable convertToJson(byte[] json, org.apache.camel.Exchange exchange) throws Exception - Throws:
Exception
-
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
@Converter(order=10) public static org.apache.camel.util.json.JsonObject convertToJsonObject(File file, org.apache.camel.Exchange exchange) throws Exception - Throws:
Exception
-
convertToJsonArray
@Converter(order=11) public static org.apache.camel.util.json.JsonArray convertToJsonArray(File file, org.apache.camel.Exchange exchange) throws Exception - Throws:
Exception
-
convertToJson
@Converter(order=12) public static org.apache.camel.util.json.Jsonable convertToJson(File file, org.apache.camel.Exchange exchange) throws Exception - Throws:
Exception
-
convertToJsonObject
@Converter(order=13) public static org.apache.camel.util.json.JsonObject convertToJsonObject(org.apache.camel.WrappedFile wf, org.apache.camel.Exchange exchange) throws Exception - Throws:
Exception
-
convertToJsonArray
@Converter(order=14) public static org.apache.camel.util.json.JsonArray convertToJsonArray(org.apache.camel.WrappedFile wf, org.apache.camel.Exchange exchange) throws Exception - Throws:
Exception
-
convertToJson
@Converter(order=15) public static org.apache.camel.util.json.Jsonable convertToJson(org.apache.camel.WrappedFile wf, org.apache.camel.Exchange exchange) throws Exception - Throws:
Exception
-