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...
195
Atif Aziz
azizatif
Jan 5, 2006 9:22 am
... It is up to the coder to define 'best practices' not the format to impose or restrict them. << Agreed. The problem lies in some of the inconsistencies...
196
Atif Aziz
azizatif
Jan 5, 2006 1:27 pm
... And who took away single quoted strings and unquoted member names?! Hell yes, I'd like to see the reasoning for changes like that, too.<< << I'd like...
197
Douglas Crockford
douglascrock...
Jan 5, 2006 4:44 pm
The Java implementation at JSON.org is very liberal in the texts that it will accept. The JavaScript implementation is very strict. A JSON encoder must...
198
Douglas Crockford
douglascrock...
Jan 5, 2006 4:51 pm
... I used to agree what comments would be useful. But since I started using JSON, I never discovered what that use was. I have seen them used very badly. I...
199
ingliss
Jan 5, 2006 5:12 pm
... (/^(\s|[,:{}\[\]]|"(92;\["\\bfnrtu]|[^\x00-\x1f"\\])*"|-?\d+(\.92;d*)?([eE][+-]?92;d+)?|true|false|null)+$/.test(text)) ... I'm seeing some fairly crippling...
200
Martin Cooper
mfncooper
Jan 5, 2006 10:24 pm
... You're not convinced that saving developers39; time is valuable? OK, then, how about compatibility? There are lots of JSON implementations out there already,...
201
alvinz_c
Jan 8, 2006 2:37 am
Hi, i have a json data like var celldata = [ {firstcell:"yyy",secondcell:"xxx"}, {firstcell:"yyy",secondcell:"xxx"}, {firstcell:"yyy",secondcell:"xxx"} ]; By...
202
MPCM
mpcmtechnolo...
Jan 8, 2006 4:15 am
celldata is an array of objects, each object having 2 properties. You can loop through the properties and count, but I'm not sure if there is a function that...
203
alvinz_c
Jan 8, 2006 8:45 am
Thanks for your suggestion. It works !! Thanks .... :) ... there is ... run ... way....
204
Atif Aziz
azizatif
Jan 11, 2006 6:41 pm
I think you are contradicting yourself and proving my point. :-) ... But in some cases, you might want to be looser. There are lots of data representations out...
205
Douglas Crockford
douglascrock...
Jan 11, 2006 10:30 pm
... I have been incrementally improving the speed of the JavaScript parser in response to complaints that it was not optimal. My intention was to make it as...
206
Atif Aziz
azizatif
Jan 12, 2006 8:46 am
Bear in mind that the following... ... [ {firstcell:"yyy",secondcell:"xxx"}, {firstcell:"yyy",secondcell:"xxx"}, {firstcell:"yyy",secondcell:"xxx"} ] << ...is...
207
Atif Aziz
azizatif
Jan 12, 2006 11:28 am
... My intention was to make it as fast as possible while still conforming to the standard. But it is just one possible implementation. If you want to write...
208
Atif Aziz
azizatif
Jan 12, 2006 12:30 pm
... Thanks for clarifying this [1]. Just for completeness, could you expand on which productions these are? The only one that I am aware of at the moment is...
209
Dave Balmer
dbalmerjr
Jan 13, 2006 1:20 am
Am I the only one who wonders why the heck JSON needs to be YAML compliant? I'll put aside the fact that YAML looks insanely complicated and instead ask......
210
Atif Aziz
azizatif
Jan 13, 2006 9:14 am
Dave, you're not the only one. I am assuming you're feeling lonely :-) because you may have missed my sentiments on the subject. I expressed the same concerns...
211
jemptymethod
Jan 14, 2006 7:25 pm
... I don't think this is "an error in the ... spec" .... I can think of at least one other language that disallows unquoted reserved words as keys (Lua), and...
212
Douglas Crockford
douglascrock...
Jan 17, 2006 7:26 pm
Unicode defines a set of character code points between U+0000 and U+10FFFF, organized into 17 planes of 64K each. 0 BMP Basic Multilingual Plane 1 SMP...
213
Douglas Crockford
douglascrock...
Jan 17, 2006 7:31 pm
... Yes. The problem is that they allow comma as a thousands separator, so [1,999] produces a different result than [1, 999]....
214
Walter Cruz
fox_jarod
Jan 18, 2006 2:41 pm
Hi all. I've read a lot of articles about JSON and I'm eager to use it ! I have read some examples on quircksmode, etc. Well, I'm using a json string in an...
215
Douglas Crockford
douglascrock...
Jan 18, 2006 4:39 pm
... konqueror. But ... I think your problem is that you have linefeeds inside of your strings. ...
216
Douglas Crockford
douglascrock...
Jan 18, 2006 8:07 pm
I have submitted a draft to IETF. You can see it here: http://www.ietf.org/internet-drafts/draft-jsonorg-json-00.txt...