www.digitalmars.com         C & C++   DMDScript  

digitalmars.D - JSON in D

reply Steve Teale <steve.teale britseyeview.com> writes:
I'm trying to write a JSON parser/generator. If anyone else is doing the same,
can we collaborate?

Steve
May 15 2009
parent reply Sean Kelly <sean invisibleduck.org> writes:
== Quote from Steve Teale (steve.teale britseyeview.com)'s article
 I'm trying to write a JSON parser/generator. If anyone else is doing the same,
can we collaborate?
I've got one, but I wrote it for work so I'm not sure if I can release it. I'd be happy to offer suggestions though :-/
May 15 2009
parent reply Christopher Wright <dhasenan gmail.com> writes:
Sean Kelly wrote:
 == Quote from Steve Teale (steve.teale britseyeview.com)'s article
 I'm trying to write a JSON parser/generator. If anyone else is doing the same,
can we collaborate?
I've got one, but I wrote it for work so I'm not sure if I can release it. I'd be happy to offer suggestions though :-/
Dude, tango.text.json?
May 15 2009
next sibling parent Sean Kelly <sean invisibleduck.org> writes:
== Quote from Christopher Wright (dhasenan gmail.com)'s article
 Sean Kelly wrote:
 == Quote from Steve Teale (steve.teale britseyeview.com)'s article
 I'm trying to write a JSON parser/generator. If anyone else is doing the same,
can we collaborate?
I've got one, but I wrote it for work so I'm not sure if I can release it. I'd be happy to offer suggestions though :-/
Dude, tango.text.json?
That's a decent option if you aren't inclined to write one.
May 15 2009
prev sibling parent reply Moritz Warning <moritzwarning web.de> writes:
On Fri, 15 May 2009 18:27:05 -0400, Christopher Wright wrote:

 Sean Kelly wrote:
 == Quote from Steve Teale (steve.teale britseyeview.com)'s article
 I'm trying to write a JSON parser/generator. If anyone else is doing
 the same, can we collaborate?
I've got one, but I wrote it for work so I'm not sure if I can release it. I'd be happy to offer suggestions though :-/
Dude, tango.text.json?
I also wrote one: http://web-gmui.svn.sourceforge.net/viewvc/web-gmui/trunk/utils/json/ it's fast, has many features and is BSD licensed.
May 16 2009
parent reply Steve Teale <steve.teale britseyeview.com> writes:
Moritz Warning Wrote:

 On Fri, 15 May 2009 18:27:05 -0400, Christopher Wright wrote:
 
 Sean Kelly wrote:
 == Quote from Steve Teale (steve.teale britseyeview.com)'s article
 I'm trying to write a JSON parser/generator. If anyone else is doing
 the same, can we collaborate?
I've got one, but I wrote it for work so I'm not sure if I can release it. I'd be happy to offer suggestions though :-/
Dude, tango.text.json?
I also wrote one: http://web-gmui.svn.sourceforge.net/viewvc/web-gmui/trunk/utils/json/ it's fast, has many features and is BSD licensed.
Thanks, I'll check it out, bur mine is also close to working now. Steve
May 16 2009
parent reply Fawzi Mohamed <fmohamed mac.com> writes:
On 2009-05-16 19:30:03 +0200, Steve Teale <steve.teale britseyeview.com> said:

 Moritz Warning Wrote:
 
 On Fri, 15 May 2009 18:27:05 -0400, Christopher Wright wrote:
 
 Sean Kelly wrote:
 == Quote from Steve Teale (steve.teale britseyeview.com)'s article
 I'm trying to write a JSON parser/generator. If anyone else is doing
 the same, can we collaborate?
I've got one, but I wrote it for work so I'm not sure if I can release it. I'd be happy to offer suggestions though :-/
Dude, tango.text.json?
I also wrote one: http://web-gmui.svn.sourceforge.net/viewvc/web-gmui/trunk/utils/json/ it's fast, has many features and is BSD licensed.
Thanks, I'll check it out, bur mine is also close to working now. Steve
As we are about JSON blip has also one. It does not aim at replacing tango's one, which is really fast, and is the way to go if you want to read JSON to an in memory representation of it. On the other hand if you want to use JSON for serialization, i.e. to read into your objects, or to write out them, then what is in blip could be interesting as it is a serialization frameworkd that support json (and also a binary protocol), and could be exteded to support other protocols like xml. Fawzi
May 17 2009
next sibling parent reply Christopher Wright <dhasenan gmail.com> writes:
Fawzi Mohamed wrote:
 As we are about JSON blip has also one.
 It does not aim at replacing tango's one, which is really fast, and is 
 the way to go if you want to read JSON to an in memory representation of 
 it.
 
 On the other hand if you want to use JSON for serialization, i.e. to 
 read into your objects, or to write out them, then what is in blip could 
 be interesting as it is a serialization frameworkd that support json 
 (and also a binary protocol), and could be exteded to support other 
 protocols like xml.
 
 Fawzi
 
Do you have a link?
May 17 2009
parent Fawzi Mohamed <fmohamed mac.com> writes:
On 2009-05-17 16:58:26 +0200, Christopher Wright <dhasenan gmail.com> said:

 Fawzi Mohamed wrote:
 As we are about JSON blip has also one.
 It does not aim at replacing tango's one, which is really fast, and is 
 the way to go if you want to read JSON to an in memory representation 
 of it.
 
 On the other hand if you want to use JSON for serialization, i.e. to 
 read into your objects, or to write out them, then what is in blip 
 could be interesting as it is a serialization frameworkd that support 
 json (and also a binary protocol), and could be exteded to support 
 other protocols like xml.
 
 Fawzi
 
Do you have a link?
http://dsource.org/projects/blip
May 17 2009
prev sibling parent Steve Teale <steve.teale britseyeview.com> writes:
Fawzi Mohamed Wrote:

 
 As we are about JSON blip has also one.
 It does not aim at replacing tango's one, which is really fast, and is 
 the way to go if you want to read JSON to an in memory representation 
 of it.
 
 On the other hand if you want to use JSON for serialization, i.e. to 
 read into your objects, or to write out them, then what is in blip 
 could be interesting as it is a serialization frameworkd that support 
 json (and also a binary protocol), and could be exteded to support 
 other protocols like xml.
 
 Fawzi
 
Fawzi, What I've done is actually going pretty well, I can parse all the examples from www.json.org (albeit with changes that I don't want to make - they have an example (the most complicated one) with variable names that would not compile in Javascript). My test program parses them, converts them to XML, then converts them back back to JSON, and compares the outputs. D/Phobos really does make this stuff easy - I love it! Steve
May 17 2009