WebDAV is an accepted standard for implementing web-folders, but the WebDAV specification is very complex and requires an XML parser with namespace support. We...
140
TCQ
despam2004
Dec 20, 2005 11:42 pm
Has anybody hacked a simple zipping algorithm for JavaScript terse literal constructs such as Arrays and Objects (JSON)? I am doing so much data piping through...
141
Andrew Durdin
adurdin
Dec 21, 2005 3:18 am
... Obfuscation will not give you good security. If you want security for your data, then the most straightforward way is to use https for your JSON requests. ...
142
TCQ
despam2004
Dec 21, 2005 4:58 am
... for your data, then the most straightforward way is to use https for your JSON requests. I agree and am doing the https route but since I am mostly...
143
Paul Hanlon
pthanlonie
Dec 21, 2005 3:52 pm
Hi All, I wonder if anyone can help.I come from a background of programming in PHP, and am only just beginning to get to grips with the power of Javascript....
144
Michal Migurski
michal_migurski
Dec 21, 2005 5:06 pm
The javascript for/in syntax actually iterates over the properties of an object or indexes of an array. Javascript39;s "for(index in array)" is roughly...
145
Atif Aziz
azizatif
Dec 21, 2005 5:22 pm
The value of i in the for/in loop is a string that represents the name of the object's property being enumerated for that iteration. You need to index the...
146
pthanlonie
Dec 21, 2005 7:40 pm
Hi, Thanks so much. I've been tearing my hair out. When I tried brs.i.text, and it didn't work, I never thought to use the brackets. I'll need to rejig my JSON...
147
f3l
kyoosho
Dec 21, 2005 7:52 pm
http://www.west.co.tt/matt/js/redbug/redbug.html he alzo zips his source, WARNING: the demo may slow down your browser. ... -- //f3l ...
148
Martin Cooper
mfncooper
Dec 21, 2005 8:22 pm
... This may be more than you're looking for, but you might want to take a look at Dojo ShrinkSafe: http://alex.dojotoolkit.org/shrinksafe/ -- Martin Cooper I...
149
Douglas Crockford
douglascrock...
Dec 24, 2005 5:00 pm
JSON_checker is a pushdown automaton in C. It very quickly scans a JSON texts and determines if it is strictly syntactically correct. See ...
150
Michal Migurski
michal_migurski
Dec 24, 2005 5:30 pm
This could be a useful thing to have in JS, for security goof checks prior to the very-dangerous eval(). -mike. ... michal migurski- contact info and pgp key: ...
151
Atif Aziz
azizatif
Dec 24, 2005 6:53 pm
Are comments officially out of the specification? It seems so looking at the current state of the spec http://www.json.org/. ... existing decoders can continue...
152
Douglas Crockford
douglascrock...
Dec 24, 2005 8:32 pm
JSON does not have comments. A JSON encoder MUST NOT output comments. A JSON decoder MAY accept and ignore comments. Comments should never be used to transmit...
153
Martin Cooper
mfncooper
Dec 25, 2005 1:54 am
... Not now, but it used to have comments. I believe it's time to start versioning the spec. Several things have changed, and people have different ...
154
Atif Aziz
azizatif
Dec 25, 2005 7:21 pm
As Martin already said, JSON used to have comments. I don't know what led to the stringent opinion (perhaps from field experience) that they are so harmful as...
155
MPCM
mpcmtechnolo...
Dec 26, 2005 4:22 am
I had posted in the original thread talking about comments and wanted to follow up here as well. While meta data, like comments, might be useful, the only way...
156
Douglas Crockford
douglascrock...
Dec 26, 2005 2:15 pm
These were the reasons for removing comments: First, comments turned out to not be very useful. Second, comments were the most difficult feature to support in...
157
Douglas Crockford
douglascrock...
Dec 26, 2005 2:20 pm
I have a a new version of JSON.parse in JavaScript. It is vastly faster and smaller than the previous version. It uses a single call to eval to do the...
158
Martin Cooper
mfncooper
Dec 26, 2005 5:59 pm
... Then why not label the current version as JSON 1.0? -- Martin Cooper ... [Non-text portions of this message have been removed]...
159
Atif Aziz
azizatif
Dec 27, 2005 5:17 pm
I am assuming the order of reasons list was not significant. ... This is always rather subjective. When you consider that all text formats strive for and boast...
160
Atif Aziz
azizatif
Dec 27, 2005 6:27 pm
... I don't really consider comments as meta-data, unless you mean in the style of javadocs. I see comments as much a presentation aspect of the syntax as...
161
Andrew Durdin
adurdin
Dec 28, 2005 12:08 am
... To be more robust, shouldn't it catch errors thrown due to malformed JSON that still passes the regex, like the following (fairly minimal case): ] Andrew...
162
Douglas Crockford
douglascrock...
Dec 29, 2005 12:40 am
... The issue is "Is it safe?" The eval function is inherently unsafe. It allows a chunk of script to run with full authority. Some people have been relunctant...
163
f3l
kyoosho
Dec 29, 2005 12:53 am
... but you still have the bookmarklets issue, right? anyone (ok, maybe not anyone, but some ppl) can type javascript:foobar() on the address bar and crap all...
164
Douglas Crockford
douglascrock...
Dec 29, 2005 1:11 am
... javascript:foobar() on ... The specific problem is that you do not want to give a text from a 3rd party data server the same authority as your own scripts....
165
Douglas Crockford
douglascrock...
Dec 29, 2005 1:38 am
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. -- ...