Re: [Json] FYI ECMA, W3C, IETF coordination on JSON

On Tue, Oct 8, 2013 at 12:48 PM, Peter F. Patel-Schneider <
pfpschneider@gmail.com> wrote:

> I had first thought that JSON was really really interoperable.  Then I saw
> all the problems JSON-LD had with JSON.  Then I looked closer and saw


Could you elaborate bit on what kinds of problems there are?

the problems in JSON with numbers, and strings, and arrays. Then I said to
> myself "There really is no problem - although the syntax of JSON is too
> loose, and the description is too loose, everyone interprets JSON as if it
> was transmitting ECMAScript values."  Then I realized that this is not the
> case, and, moreover, that even ECMAScript JSON doesn't match the intuitive
> description of JSON.
>
> So I would say that JSON is only interoperable if you don't care too much
> about interoperability, and you don't hit any of the really ugly corner
> cases.
>
>
So why then is JSON so successful?  Well, it's easy to write, easy to read,
> matches programming language data fairly closely, and either you are both
> producer and consumer or you don't care that your system works correctly
> all the time so you don't care that JSON does not support interoperability.
>
>
I keep hearing all the claims of non-interoperability, but have seen barely
any problems that are actually on JSON data format level.
Almost only one I have seen is the limited numeric range of Javascript wrt
64-bit integers being one of few that has ACTUALLY surfaced.
This based on my 5 years of working on one of most widely used Java JSON
libraries, interacting on mailing lists.
Even discussion on potential issues (such as other concerns regarding
number representation) has been very limited.

Actual problems that are reported for interoperability are almost all
related to higher-level incompatibility: how are Dates translated into JSON
(numeric timestamp or String? Which of ISO-8601 variants?); whether it is a
good idea to translate simple structs into more elaborate ones with
metadata and so on.
But while these are real problems in context of systems that use JSON, none
of these issues is part of JSON the Format specification
In short, I think that these concerns are used in wrong context -- nothing
within syntactic definition, or semantics of simple values JSON has, will
help with these (valid) concerns.

Unless there is some effort to actually quantify ACTUAL syntax-level
interoperability problems encountered, it would be best to consider these
alleged or potential issues. They are not at "well-known fact" level
(except when used ironically to indicate that it's all hear-say & urban
legens).

-+ Tatu +-



> peter
>
>
> On 10/08/2013 12:21 PM, Brian Kardell wrote:
>
> [...]
>
>>
>> So I guess my big question I keep asking myself is this:  Despite the
>> fact that it didn't involve standards bodies and committees to get out the
>> door - JSON is really *really* interoperable.  There are potentially some
>> edge cases, but given its importance to the Web it does seem like the ECMA
>> version is the most important baseline here.  If we want to make
>> improvements, why not just invent some other thing - not JSON... Call it
>> "super json" or "phil" or - just something else...And let that something
>> else attempt to address perceived problems and make some minor comments
>> about the ability to parse a subset of it with the standard JSON parsers
>> that conform to ECMA-404 or something and then go out there and compete and
>> see if it actually does better.  Maybe it will and we can all go have beers
>> and laugh about it, but - maybe it won't and at least we don't have to
>> break things.
>>
>>
>> --
>> Brian Kardell :: @briankardell
>>
>
> ______________________________**_________________
> json mailing list
> json@ietf.org
> https://www.ietf.org/mailman/**listinfo/json<https://www.ietf.org/mailman/listinfo/json>
>

Received on Tuesday, 8 October 2013 20:02:32 UTC