Annotation Type JsonConverter


  • @Target({FIELD,METHOD,PARAMETER})
    @Retention(RUNTIME)
    @Inherited
    @Documented
    public @interface JsonConverter
    This annotation is useful when you want to use a specific Converter for a property in a class, but do not want to use it for all properties of that type. When you put this annotation on a field, constructor parameter or setter/getter, Genson will use this Converter instead of any other. The Converter must have a default no arg constructor.
    Author:
    Eugen Cepoi
    • Required Element Summary

      Required Elements 
      Modifier and Type Required Element Description
      Class<? extends Converter<?>> value