Andrew Ducker (andrewducker) wrote,
Andrew Ducker

Any suggestions for how to handle Dates in JSON?

Because JSON doesn't support a standard date format I'm going to have to serialise/deserialise to _something_. A quick google has found me numerous different approaches - anyone care to point me at a specific best practice?

(If it helps, the server is Java and serialises via GSON. But that allows me to override with any formatting I like for a given type, so I can happily adjust to whatever makes most sense.)

Original post on Dreamwidth - there are comment count unavailable comments there.
  • Post a new comment


    Anonymous comments are disabled in this journal

    default userpic

    Your reply will be screened