There is a new implementation of JSON in Python. See http://undefined.org/python/#simple_json...
166
Douglas Crockford
douglascrock...
Jan 3, 2006 4:38 pm
... I would like to understand your intentions. Where commentary is important, it can be encoded directly in JSON, where the outermost object resembles a COBOL...
167
Anthony Mouse
anthony.mouse
Jan 3, 2006 4:54 pm
What is the future of JSON? Yahoo is now supporting JSON for their WebServices - is that because Douglas Crockford works for Yahoo? What is the status of...
168
MPCM
mpcmtechnolo...
Jan 3, 2006 5:00 pm
You may want to look through these messages of the group. I'm fairly certain everyone here would say it has a future, even without Yahoo in the picture. -- ...
169
ingliss
Jan 3, 2006 5:20 pm
I don't expect this to apply to many people, and I'm not remarking on it as a shortcoming of JSON (because it clearly isn't), this is just for information: ...
170
ingliss
Jan 3, 2006 5:30 pm
Is there any reason why this is used: function e(s) { a[a.length] = s; } rather than function e(s) { a.push(s); } ? I don't suppose it makes much difference in...
171
Jim Washington
jimcburg
Jan 3, 2006 6:00 pm
... It can be useful to comment-out sections of hand-coded JSON for development/testing, and to have inline human-readable comments about what is going on. A...
172
Atif Aziz
azizatif
Jan 3, 2006 6:39 pm
Jim has said it sweetly what pretty much everyone has been saying on this thread (perhaps just in too many words). He's also hit my points right on. ... If...
173
Douglas Crockford
douglascrock...
Jan 3, 2006 6:43 pm
... This question is way off topic for this group. This group is about JSON, not JavaScript coding. But to answer your question, the first form is slightly...
174
Martin Cooper
mfncooper
Jan 3, 2006 6:49 pm
... It's a shame that neither the previous version nor the current version aren't versioned... ;-) -- Martin Cooper (luckily I have a copy on disk) or that the...
175
Douglas Crockford
douglascrock...
Jan 3, 2006 6:53 pm
... because Douglas Crockford works for Yahoo? What is the status of http://JSON.Org (it now re-directs to http://www.crockford.com/JSON/ ) and what is...
176
MPCM
mpcmtechnolo...
Jan 3, 2006 7:03 pm
I think the real crux of this is simply, you cannot create a json format string through encoding from existing data that would contain comments (IIRC). It is...
177
Martin Cooper
mfncooper
Jan 3, 2006 7:24 pm
... Huh? If I'm writing an encoder that takes a Java data structure and encodes it into JSON, it would make perfect sense to me to generate comments (in ...
178
Dave Balmer
dbalmerjr
Jan 3, 2006 7:58 pm
I'll jump in here and say that even a draconian syntax like XML (arguably the most used data stream format on the planet) supports comments. The whole point of...
179
Douglas Crockford
douglascrock...
Jan 3, 2006 8:22 pm
... encodes ... encoded. So, ... encoding ... Why would you do that? What expectation do you have of the receiver? Why waste the bandwidth? What, specifically,...
180
f3l
kyoosho
Jan 3, 2006 8:40 pm
... debug information is *IN*valuable , for us weak-minded developers that cant guess whats being passed back and forth, i use html comments in lots of...
181
Martin Cooper
mfncooper
Jan 3, 2006 9:33 pm
... In this specific example, I might choose to do this because multiple Java types map to the same JSON type, and it could help me a lot with identifying ...
182
ingliss
Jan 4, 2006 12:17 am
... Hmmm. Well, if you say so, but I'd rather taken my lead as to relevance from the post where you discuss Javascript efficiency in the parse function :-) ......
183
Atif Aziz
azizatif
Jan 4, 2006 12:24 am
I am completely stumped. Did the rest of my message not present the cases? Do HTML, XML and YAML or just about any text format not acknowledge the utility of...
184
Atif Aziz
azizatif
Jan 4, 2006 12:39 am
I think Martin's response (#177 [1]) has addressed most points so I just want to add one thing simply. Given any text format, comments are just about as useful...
185
Atif Aziz
azizatif
Jan 4, 2006 12:54 am
... As I said, I have a sneaking hunch that the real issue stems from tying JSON to YAML. With the comments debate generating some traffic, I feel less daring...
186
Dave Balmer
dbalmerjr
Jan 4, 2006 1:41 am
I do have to say, unless I've missed something big in the thread, the only thing I see keeping comment support *out* of the new version is "because". As in...
187
Douglas Crockford
douglascrock...
Jan 4, 2006 1:59 am
JSON has a string notation which is similar to that used in the C family languages. Strings are bounded by double quote characters. Escapement is provided by...
188
Martin Cooper
mfncooper
Jan 4, 2006 6:39 am
... These statements have me really wondering about what JSON is supposed to be. The reasoning behind removing comments was that it would "more closely align ...
189
Douglas Crockford
douglascrock...
Jan 4, 2006 2:01 pm
... That is correct. JSON is a text format that is completely language independent but uses conventions that are familiar to programmers of the C-family of ...
190
George
georgenava
Jan 4, 2006 3:04 pm
I agree 100% with you. Do as I do and use Javascript Object Literals as they are specified in the Javascript or ECMAScript Reference. Anything the JS parser...
191
Michal Migurski
michal_migurski
Jan 4, 2006 3:28 pm
... Beginning to? I thought this was the idea all along? Syntax that's valid Javascript, Python, and easy to write parsers for other languages. I'm already...
192
Martin Cooper
mfncooper
Jan 4, 2006 4:53 pm
... Then can you please explain why it is called JavaScript Object Notation? -- Martin Cooper but uses ... [Non-text portions of this message have been...
193
Douglas Crockford
douglascrock...
Jan 4, 2006 6:48 pm
... JSON is based on a subset of the JavaScript Programming Language, Standard ECMA-262 3rd Edition - December 1999. See http://www.JSON.org/...
194
Peter Ring
peter17ring
Jan 5, 2006 8:25 am
Funny thing is, YAML was designed for human consumption as much as a language-neutral serializing format. And JSON's ancestry (JavaScript) is more in the LISP...