Qi4j

JSON serialization is less than optimal

Details

  • Type: Improvement Improvement
  • Status: Closed Closed
  • Priority: Major Major
  • Resolution: Fixed
  • Affects Version/s: 1.0
  • Fix Version/s: 1.1
  • Component/s: Core Runtime
  • Labels:
    None

Description

1. BigDecimal and BigInteger instances are serialized with quotes, saying effectively that they are Strings instead of numbers.

2. Float and Double values are not rounded off, and are serialized with more decimals than required.

Activity

Hide
Niclas Hedhman added a comment -

By not trying to do our own serialization of Number, it seems that the JSON library handles both of these issues perfectly well.

Show
Niclas Hedhman added a comment - By not trying to do our own serialization of Number, it seems that the JSON library handles both of these issues perfectly well.
Hide
Niclas Hedhman added a comment -

Fixed and committed this.

Additional note; The old "quoted" BigDecimal and BigInteger formats should still be supported.

Show
Niclas Hedhman added a comment - Fixed and committed this. Additional note; The old "quoted" BigDecimal and BigInteger formats should still be supported.

People

Vote (0)
Watch (0)

Dates

  • Created:
    Updated:
    Resolved: