[JAVA-1982] Strict JSONSerializer writes Date values as long Created: 25/Sep/15  Updated: 08/Dec/17  Resolved: 08/Dec/17

Status: Closed
Project: Java Driver
Component/s: Documentation
Affects Version/s: 2.13.0
Fix Version/s: None

Type: Improvement Priority: Major - P3
Reporter: Andreas Zink [X] Assignee: Unassigned
Resolution: Won't Fix Votes: 0
Labels: None
Remaining Estimate: Not Specified
Time Spent: Not Specified
Original Estimate: Not Specified


 Description   

Documentation of JSONSerializers#getStrict() tells that it follows strict json format. However, the used DateSerializer always writes Date instances using date.getTime(), i.e. dates written as long values which does not match the documentation regarding dates

Btw it would be nice to customize the used Serializers, e.g. like mentioned in JAVA-1175



 Comments   
Comment by Jeffrey Yemin [ 08/Dec/17 ]

The JSON class is now deprecated so closing this as Won't Fix. Please use JsonWriter, which is now extensively customizable.

Comment by Jeffrey Yemin [ 15/Sep/16 ]

Strict JSON mode has changed over time, which is why JSONSerializers#getStrict() no longer conforms to the strict mode documentation. We will document this in the API docs.

Any customization to JSON will happen using the JsonWriter class introduced in the 3.0 driver.

Generated at Thu Feb 08 08:56:01 UTC 2024 using Jira 9.7.1#970001-sha1:2222b88b221c4928ef0de3161136cc90c8356a66.