Uploaded image for project: 'Johnzon'
  1. Johnzon
  2. JOHNZON-68

@JsonbTransient is not working

    XMLWordPrintableJSON

Details

    • Bug
    • Status: Closed
    • Major
    • Resolution: Fixed
    • 0.9.3-incubating
    • 0.9.4
    • None
    • None

    Description

      When annotating a field with @JsonbTransient that field is still included in the JSON.

      Example:

      public class Book {
      
        @JsonbTransient
        private long id;
      
        @JsonbProperty("_name")
        private String name;
      
        // getters & setters
      }
      

      The output of that example is:

      {"_name": "test", "id":123}
      

      Attachments

        Activity

          People

            romain.manni-bucau Romain Manni-Bucau
            sdaschner Sebastian Daschner
            Votes:
            0 Vote for this issue
            Watchers:
            2 Start watching this issue

            Dates

              Created:
              Updated:
              Resolved: