Well, if I am right, the parser in your example is essentially a lexer, with slightly higher abstraction. It's true that it's convenient to control in simple...
1202
Tatu Saloranta
cowtowncoder
Feb 5, 2009 5:41 pm
... Not really. You may want to read a bit on Stax API for Java: I assume you are familiar with SAX API. Both operate at roughly same level of abstraction, and...
1203
Fang Yidong
fangyidong
Feb 6, 2009 12:52 am
... I did go through JSR 173 before comparing. I mean, the StAX parser in your example is similar to a lexer such as org.json.simple.parser.Yylex: Yylex lexer...
1204
Tatu Saloranta
cowtowncoder
Feb 6, 2009 6:08 pm
... Ah ok. Maybe I misread your comment: if you meant it's lower level of abstraction than a tree model, yes. I meant to say that SAX(-like) API is at similar...
1205
Kris Zyp
kriszyp
Feb 6, 2009 6:32 pm
For those who might be interested, I have started new a Google group/mailing list for the continued development of a language/syntax for JSON querying: ...
1206
Tatu Saloranta
cowtowncoder
Feb 6, 2009 7:13 pm
Hi Kris! I think this is a good group to have. :) One quick question: I was wondering about naming of the effort. To me, "Path" and "Query" imply somewhat...
1207
Fang Yidong
fangyidong
Feb 7, 2009 1:33 am
... Yes, it's convenient. But I think it may result in a call stack based processor instead of a heap based one, right? The former will cause stack overflow...
1208
Mark Joseph
markjoseph_sc
Feb 8, 2009 12:25 am
I was reading over the StAX specification and BEA provides licenses to the API, but that license prevents sublicenses. This means I as a vendor cannot provide...
1209
Tatu Saloranta
cowtowncoder
Feb 8, 2009 3:10 am
... I don't see why you would need a license to implement an API. Generally licensing governs usage of API itself, distributing it, modifying etc. None of...
1210
Tatu Saloranta
cowtowncoder
Feb 8, 2009 3:16 am
... Yes, if your document has nesting level of about million or so. :-D So I don't think that is a practical concern. If it happens to be, then one can...
1211
Mark Joseph
markjoseph_sc
Feb 8, 2009 4:35 am
Ah I am sorry I was not clear we provide the JSON and XML tools to C++ users not Java. http://www.p6r.com/articles/2008/05/22/a-sax-like-parser-for-json/ On...
1212
Tatu Saloranta
cowtowncoder
Feb 8, 2009 6:09 am
... Ok that explains it. I shouldn't have assume it's for Java either. And it is true that for products that cover both xml and json, it is advantageous to use...
1213
Douglas Crockford
douglascrock...
Feb 13, 2009 10:07 pm
I have updated the JSONRequest proposal, removing the Origin feature. I have been persuaded that it can encourage bad practice. ...
1214
pigwin32
Feb 16, 2009 8:10 am
... This question may have been asked previously but a quick search didn't turn up anything. Why does JSONRequest only support GET/POST and propose a new...
1215
Tatu Saloranta
cowtowncoder
Feb 16, 2009 7:51 pm
... I am not a REST expert, but isn't PUT used to store given payload (in this case, request in form of Json), and DELETE just ignore payload? Meaning that...
1216
Jimmy Zhang
jzhang_ximpl...
Feb 18, 2009 8:35 pm
VTD-XML 2.5 is now released. Please go to https://sourceforge.net/project/showfiles.php? group_id=110612&package_id=120172&release_id=661376 to download the...
1217
Fang Yidong
fangyidong
Feb 20, 2009 7:08 am
Hello Tatu, While I was googling JSON.simple usage, I occasionally find JsonSimpleDriver.java in svn of codehaus, and the benchmark results, comparing with...
1218
Fang Yidong
fangyidong
Feb 20, 2009 7:14 am
Sorry this message is intended to send to Tatu only. My bad. Since the result is not published yet, let's discuss it privately. Hello Tatu, While I was...
1219
Tatu Saloranta
cowtowncoder
Feb 20, 2009 7:46 am
... Hi there! Yes, that is true. ... Sure, thank you for your input. I hadn't yet published it, but it is of course public from the blog. ... Hmmh. I don't...
1220
Tatu Saloranta
cowtowncoder
Feb 20, 2009 5:12 pm
... (took the discussion offline, but if anyone is interested in what results we are discussing, those are at: ...
1221
Alan Kennedy
alank1610
Mar 21, 2009 12:18 pm
Dear all, I am pleased to announce the publication of a new open source product, jyson, a pure java JSON codec for jython 2.5. You can access source code,...
1222
violinssoundcool
violinssound...
Mar 23, 2009 7:21 pm
Hi. I'm using JSON with JQGrid in an inquiry program. I'm building a JSON string with the server-side program, and the string contains an HTML hyperlink tag....
1223
Stephen M. McKamey
stephen.mckamey
Mar 23, 2009 8:01 pm
It's valid JSON but not HTML. You're effectively closing the href attribute with the first \" in the URL. First off, it's is going to be an issue because...
1224
Tatu Saloranta
cowtowncoder
Mar 23, 2009 8:35 pm
On Mon, Mar 23, 2009 at 12:53 PM, Stephen M. McKamey <jsonml@...> wrote: ... This does seem to be the case, and if so, I agree that it's time to use a...
1225
violinssoundcool
violinssound...
Mar 23, 2009 8:36 pm
You're totally right. Wow. I honestly can't believe I missed that. I'm no genius, but I didn't think I was a complete idiot until now. I removed the...
1226
violinssoundcool
violinssound...
Mar 23, 2009 8:37 pm
By the way, thanks for taking the time to respond to my post....
1227
Douglas Crockford
douglascrock...
Mar 23, 2009 8:47 pm
... The string appears to be properly escaped from JSON's perspective. Your problem lies elsewhere. I think it is extremely unwise to pass strings received...
1228
Stephen M. McKamey
stephen.mckamey
Mar 23, 2009 9:05 pm
Sorry typo, that HTML quote entity should not have the e on the end: "...
1229
Andy Chu
andychup
Apr 9, 2009 7:54 pm
I'd like to solicit feedback on this minimal (but powerful) template language I wrote: http://code.google.com/p/json-template/ It's meant to be a...
1230
mikeglaser@...
mikeglaser...
Apr 19, 2009 5:04 am
I have recently adapted a VBA Excel macro that parses multidimensional JSON data (ie it deals with arrays and objects in the data), fixed some parsing bugs and...