Interface JsonConverter

All Known Implementing Classes:
DefaultJsonConverter, XstreamJsonConverter

public interface JsonConverter
convert objects to json and back. The implementation does not need to log things, they will be logged in the caller
  • Method Details

    • convertToJson

      String convertToJson(Object object)
      convert an object to json. Note, there are only certian aliases which are allowed to be converted from json, so make sure to marshal the container object name somewhere (e.g. in the top level json object)
      Parameters:
      object -
      Returns:
      the json
    • convertToJson

      void convertToJson(Object object, Writer writer)
      convert an object to json. Note, there are only certian aliases which are allowed to be converted from json, so make sure to marshal the container object name somewhere (e.g. in the top level json object)
      Parameters:
      object - to convert to json
      writer - write the json here
    • convertFromJson

      Object convertFromJson(String json, StringBuilder warnings)
      convert a json string to an object. note that only certain object are allowed to be marshaled from json, the aliases in WsRestClassLookup.getAliasClassMap()
      Parameters:
      json -
      warnings - put warnings here
      Returns:
      the object