I have a string containing a single \ character. I'm not quite sure what this string should look like once json encoded. My javascript encoder (a popular one)...
2
Douglas Crockford
douglascrock...
Jul 20, 2005 3:07 am
... No, it should be "\92;". JSON does not use the ` character....
3
MPCM
mpcmtechnolo...
Jul 20, 2005 3:28 am
... Sorry, I have a value of \ and it is encoding it to \\92;\. The backticks where added to show that that was the value. Sorry for the confusion. The parser I...
4
Roland H. Alden
rolandalden
Jul 20, 2005 9:26 pm
So how does this JSON thing compare to this: http://microformats.org/ Inquiring minds want to know....
5
Marc Canter
marccanter
Jul 20, 2005 9:45 pm
Well what I would say is: - microformats are xHTML tags - intended on providing standards for new forms of structured data - JSON = I haven't...
6
Michal Migurski
michal_migurski
Jul 20, 2005 9:50 pm
... Completely unrelated. JSON is a data encoding standard, while Microformats are an attempt to formalize certain common types of meaningful information...
7
Douglas Crockford
douglascrock...
Jul 20, 2005 9:55 pm
... microformats is layered on top of XML. JSON could replace the XML layer. JSON is used to represent values (string, numbers, booleans, null) in sequences...
8
Roland H. Alden
rolandalden
Jul 21, 2005 12:27 am
... How is it compared to ASN.1? What's "JSON" stand for?...
9
Douglas Crockford
douglascrock...
Jul 21, 2005 12:59 am
... It is considerably simpler. It is described at http://www.JSON.org ... JavaScript Object Notation....
10
Nic Ferrier
nicferrier2000
Jul 21, 2005 1:32 am
... It's quite a long way from ASN.1. ASN.1 is a data definition language (a schema language if you like). JSON is a data format. ASN.1 is like XML-Schema and...
11
Robert Cerny
robert_cerny
Jul 26, 2005 8:56 am
I want to build a web application where the responses to requests will be in JSON or at some point in time in a different format (e.g. XML). HTTP does allow...
12
Roland H. Alden
rolandalden
Jul 26, 2005 1:17 pm
It would seem text/json is what it should be and I believe there is a documented registration process at IANA....
13
Martin Cooper
mfncooper
Jul 26, 2005 4:09 pm
... No, I don't think so. Note that text/javascript and text/ecmascript are obsolete, and replaced by application/javascript and application/ecmascript...
14
Roland H. Alden
rolandalden
Jul 26, 2005 4:38 pm
... You would seem to be correct assuming RFC 2046 is the controlling standard. Quoting from that: 4.5. Application Media Type The "application" media type is...
15
Mark Miller
capsecure
Jul 26, 2005 5:29 pm
... What are the media types for html and xml? -- Text by me above is hereby placed in the public domain Cheers, --MarkM...
16
Martin Cooper
mfncooper
Jul 26, 2005 5:57 pm
... Those are text/html and text/xml, respectively. See: http://www.iana.org/assignments/media-types/ -- Martin Cooper...
17
Mark Miller
capsecure
Jul 26, 2005 6:56 pm
... JSON is more like html & xml than it is like javascript. Therefore, reasoning by precedent and analogy, I think the right answer is text/json. -- Text by...
18
MPCM
mpcmtechnolo...
Jul 26, 2005 8:31 pm
Would someone shed some light on why the json.js file method of detecting arrays was changed? Array.prototype.______array = '______array39;; is added And - if...
19
Martin Cooper
mfncooper
Jul 26, 2005 8:36 pm
... I disagree that JSON is more like HTML and XML than like JavaScript, particularly when it's specifically a subset of JavaScript. Further, to quote some...
20
ldyhwke24
Jul 26, 2005 8:44 pm
Has anyone successfully used JSON with ColdFusion? I'm debating on whether I should use it or not... thanks, -Amy...
21
Mark Miller
capsecure
Jul 26, 2005 10:05 pm
... By what stretch of the imagination is xml readable? -- Text by me above is hereby placed in the public domain Cheers, --MarkM...
22
jemptymethod
Jul 27, 2005 10:51 pm
... I haven't tried it yet, but near the bottom of the JSON home page (http://json.org) is a link to "JSON in ColdFusion", so there seems to be a ColdFusion...
23
Amy
ldyhwke24
Jul 27, 2005 11:33 pm
I just got it to work this morning. I'm using CFJSON on the ColdFusion end.. and JSON on the javascript.. it seems to work out pretty well. I wasn't quite...
24
jemptymethod
Jul 28, 2005 1:06 am
... ColdFusion end.. and JSON on the javascript.. it seems to work out pretty well. Excellent. I'm the hotscripts.com newsletter columnist for both ...
25
Douglas Crockford
douglascrock...
Jul 29, 2005 4:06 pm
... I agree with MarkM on this one. JSON is not JavaScript. While it is a subset of JavaScript, its usage patterns are radically different. I think the right...
26
Martin Cooper
mfncooper
Jul 29, 2005 4:57 pm
... The usage patterns may be different, but if you read the portions of RFC 2046 that I quoted, those usage patterns still match application/json much better...
27
Mark Miller
capsecure
Jul 29, 2005 7:28 pm
... By the criteria you quoted, xml should be application/xml. -- Text by me above is hereby placed in the public domain Cheers, --MarkM...
28
Martin Cooper
mfncooper
Jul 29, 2005 8:18 pm
... So? We're talking about JSON, not XML. Finding an example for which you disagree with the existing categorisation isn't much of a reason to not follow the...
29
jonschull5
Aug 1, 2005 7:43 pm
Hi, Shouldn't it be possible to jsonize a string like this? {"doubleQuoteSurroundedBySpaces":" \" "}}' json.py and json.js both choke when trying to parse...
30
Mark Miller
capsecure
Aug 1, 2005 9:04 pm
... Assuming your closing ")'" is an error, E's embedded term-tree language (<http://www.erights.org/data/terml/index.html>) accepts this just fine: ?...