jira.codehaus.org

  • Log In Access more options
    • Online Help
    • Keyboard Shortcuts
    • About JIRA
    • JIRA Credits
    • What?s New
  • Dashboards Access more options (Alt+d)
  • Projects Access more options (Alt+p)
  • Issues Access more options (Alt+i)
  • Jackson JSON Processor
  • JACKSON-90

Add annotation to allow defining order of property serialization (@JsonPropertyOrder?)

  • Log In
  • Views
    • XML
    • Word
    • Printable

Details

  • Type: New Feature New Feature
  • Status: Closed Closed
  • Priority: Minor Minor
  • Resolution: Fixed
  • Affects Version/s: None
  • Fix Version/s: 1.4
  • Component/s: None
  • Labels:
    None

Description

JAXB has annotation @XmlAccessorOrder which allows specifying order in which child elements are to be serialized.
It would be useful to be able to allow the same with Json (although not quite as necessary, since Object properties are defined to be logically unordered). This could be achieved by adding a simple new annotation which would be used for (re)ordering property serializers for generic BeanSerializer.

Also: if and when this is implemented, should ensure that JAXB definition is discovered by JAXB annotation introspector.

Activity

Ascending order - Click to sort in descending order
  • All
  • Comments
  • Work Log
  • History
  • Activity
Hide
Permalink
Tatu Saloranta added a comment - 04/Nov/09 1:01 AM

Implemented, tested, will go in 1.4.0.

Show
Tatu Saloranta added a comment - 04/Nov/09 1:01 AM Implemented, tested, will go in 1.4.0.
Hide
Permalink
Tatu Saloranta added a comment - 17/Dec/09 11:04 AM

Also added support for equivalent JAXB annotation, @XmlType.propOrder.

Show
Tatu Saloranta added a comment - 17/Dec/09 11:04 AM Also added support for equivalent JAXB annotation, @XmlType.propOrder.
Hide
Permalink
Tatu Saloranta added a comment - 14/Feb/10 4:37 PM

Included in 1.4.0 release.

Show
Tatu Saloranta added a comment - 14/Feb/10 4:37 PM Included in 1.4.0 release.

People

  • Assignee:
    Tatu Saloranta
    Reporter:
    Tatu Saloranta
Vote (0)
Watch (0)

Dates

  • Created:
    30/Mar/09 10:18 PM
    Updated:
    14/Feb/10 4:37 PM
    Resolved:
    04/Nov/09 1:01 AM
  • Atlassian JIRA (v5.0.4#731-sha1:3aa7374)
  • Report a problem
  • Powered by a free Atlassian JIRA open source license for Codehaus. Try JIRA - bug tracking software for your team.