[Python-ideas] Serialization of CSV vs. JSON
Chris Barker
chris.barker at noaa.gov
Fri Nov 2 13:26:58 EDT 2018
On Fri, Nov 2, 2018 at 9:31 AM, M.-A. Lemburg <mal at egenix.com> wrote:
> Serialization of those data types is not defined in the JSON standard:
>
> https://www.json.org/
That being said, ISO 8601 is a standard for datetime stamps, and a defacto
one for JSON
So building encoding of datetime into Python's json encoder would be pretty
useful.
(I would not have any automatic decoding though -- as an ISO8601 string
would still be just a string in JSON)
Could we have a "pedantic" mode for "fully standard conforming" JSON, and
then add some extensions to the standard?
As another example, I would find it very handy if the json decoder would
respect comments in JSON (I know that they are explicitly not part of the
standard), but they are used in other applications, particularly when JSON
is used as a configuration language.
-CHB
--
Christopher Barker, Ph.D.
Oceanographer
Emergency Response Division
NOAA/NOS/OR&R (206) 526-6959 voice
7600 Sand Point Way NE (206) 526-6329 fax
Seattle, WA 98115 (206) 526-6317 main reception
Chris.Barker at noaa.gov
-------------- next part --------------
An HTML attachment was scrubbed...
URL: <http://mail.python.org/pipermail/python-ideas/attachments/20181102/58f5cb3f/attachment.html>
More information about the Python-ideas
mailing list