Uploaded image for project: 'Wink'
  1. Wink
  2. WINK-299

Make Jackson the default JSON provider for Wink

    XMLWordPrintableJSON

Details

    • Improvement
    • Status: Closed
    • Major
    • Resolution: Fixed
    • None
    • 1.1.2
    • Providers
    • None

    Description

      Jackson seems to be the only JSON provider that works well (the other ones work in limited situations, but Jackson seems to handle it all well). So IMO Jackson should be considered as the default JSON provider for Wink.

      ATM the Jackson module doesn't provide a Provider impl, it should get a proper implementation that sets up a reasonable configuration. This has been working very, very well for me:

              ObjectMapper mapper = new ObjectMapper();
              AnnotationIntrospector pair = new AnnotationIntrospector.Pair(
                  new JaxbAnnotationIntrospector(), new JacksonAnnotationIntrospector());
              mapper.getDeserializationConfig().setAnnotationIntrospector(pair);
              mapper.getSerializationConfig().setAnnotationIntrospector(pair);
              JacksonJaxbJsonProvider provider = new JacksonJaxbJsonProvider();
              provider.setMapper(mapper);
      

      Attachments

        Activity

          People

            jramos Jesse A. Ramos
            jdillon Jason Dillon
            Votes:
            0 Vote for this issue
            Watchers:
            0 Start watching this issue

            Dates

              Created:
              Updated:
              Resolved: