Uploaded image for project: 'Red Hat Fuse'
  1. Red Hat Fuse
  2. ENTESB-5325

Jackson in camel REST DSL on fuse eap seems to ignore @JsonInclude(JsonInclude.Include.NON_NULL)

XMLWordPrintable

    • Icon: Bug Bug
    • Resolution: Done
    • Icon: Major Major
    • jboss-fuse-6.3
    • jboss-fuse-6.2.1
    • Fuse EAP
    • None
    • % %
    • Hide

      Test case is attached
      1 - `unzip jboss-eap-6.4.0.zip distro`
      2 - Copy `fuse-eap-installer-6.2.1.redhat-084.jar` to `eap_home`
      3- cd eap_home
      4- run `java -jar fuse-eap-installer-6.2.1.redhat-084.jar`
      5 - `mvn clean install` on test case
      6 - deploy into eap under `eap_home/standalone/deployments`
      7- hit `http://localhost:8080/support/example/xwith`

      Show
      Test case is attached 1 - `unzip jboss-eap-6.4.0.zip distro` 2 - Copy `fuse-eap-installer-6.2.1.redhat-084.jar` to `eap_home` 3- cd eap_home 4- run `java -jar fuse-eap-installer-6.2.1.redhat-084.jar` 5 - `mvn clean install` on test case 6 - deploy into eap under `eap_home/standalone/deployments` 7- hit ` http://localhost:8080/support/example/xwith `
    • 6.3 Sprint 4 (Mar 28 - Apr 29)

      @JsonInclude(JsonInclude.Include.NON_NULL) doesn't seem to have any effect on the object that's been serialized as json in camel rest dsl, json result still contains null values:

      {
          "nullField": null,
          "nonNullField": "this is my data with"
      }
      

      Note: null values seems to be handled properly in karaf using @JsonInclude(JsonInclude.Include.NON_NULL).

            acosenti Andrea Cosentino
            hooman_b2455 Hooman Broujerdi (Inactive)
            Viliam Kasala Viliam Kasala
            Votes:
            0 Vote for this issue
            Watchers:
            4 Start watching this issue

              Created:
              Updated:
              Resolved: