Class JsonConverter

java.lang.Object
org.apache.camel.converter.json.JsonConverter

@Converter(generateBulkLoader=true) public final class JsonConverter extends Object
A set of Converter methods for camel-util-json objects.
  • Method Summary

    Modifier and Type
    Method
    Description
    static org.apache.camel.util.json.Jsonable
    convertToJson(byte[] json, org.apache.camel.Exchange exchange)
     
    static org.apache.camel.util.json.Jsonable
    convertToJson(File file, org.apache.camel.Exchange exchange)
     
    static org.apache.camel.util.json.Jsonable
    convertToJson(InputStream is, org.apache.camel.Exchange exchange)
     
    static org.apache.camel.util.json.Jsonable
    convertToJson(String json, org.apache.camel.Exchange exchange)
     
    static org.apache.camel.util.json.Jsonable
    convertToJson(org.apache.camel.WrappedFile wf, org.apache.camel.Exchange exchange)
     
    static org.apache.camel.util.json.JsonArray
    convertToJsonArray(byte[] json, org.apache.camel.Exchange exchange)
     
    static org.apache.camel.util.json.JsonArray
    convertToJsonArray(File file, org.apache.camel.Exchange exchange)
     
    static org.apache.camel.util.json.JsonArray
    convertToJsonArray(InputStream is, org.apache.camel.Exchange exchange)
     
    static org.apache.camel.util.json.JsonArray
    convertToJsonArray(String json, org.apache.camel.Exchange exchange)
     
    static org.apache.camel.util.json.JsonArray
    convertToJsonArray(org.apache.camel.WrappedFile wf, org.apache.camel.Exchange exchange)
     
    static org.apache.camel.util.json.JsonObject
    convertToJsonObject(byte[] json, org.apache.camel.Exchange exchange)
     
    static org.apache.camel.util.json.JsonObject
    convertToJsonObject(File file, org.apache.camel.Exchange exchange)
     
    static org.apache.camel.util.json.JsonObject
    convertToJsonObject(InputStream is, org.apache.camel.Exchange exchange)
     
    static org.apache.camel.util.json.JsonObject
    convertToJsonObject(String json, org.apache.camel.Exchange exchange)
     
    static org.apache.camel.util.json.JsonObject
    convertToJsonObject(org.apache.camel.WrappedFile wf, org.apache.camel.Exchange exchange)
     

    Methods inherited from class Object

    clone, equals, finalize, getClass, hashCode, notify, notifyAll, toString, wait, wait, wait
  • 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