| Thread overview | ||||||||||||
|---|---|---|---|---|---|---|---|---|---|---|---|---|
|
May 15, 2009 JSON in D | ||||
|---|---|---|---|---|
| ||||
I'm trying to write a JSON parser/generator. If anyone else is doing the same, can we collaborate? Steve | ||||
May 15, 2009 Re: JSON in D | ||||
|---|---|---|---|---|
| ||||
Posted in reply to Steve Teale | == 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 Re: JSON in D | ||||
|---|---|---|---|---|
| ||||
Posted in reply to Sean Kelly | 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 16, 2009 Re: JSON in D | ||||
|---|---|---|---|---|
| ||||
Posted in reply to Christopher Wright | == 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 16, 2009 Re: JSON in D | ||||
|---|---|---|---|---|
| ||||
Posted in reply to Christopher Wright | 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 Re: JSON in D | ||||
|---|---|---|---|---|
| ||||
Posted in reply to Moritz Warning | 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 17, 2009 Re: JSON in D | ||||
|---|---|---|---|---|
| ||||
Posted in reply to Steve Teale | 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 Re: JSON in D | ||||
|---|---|---|---|---|
| ||||
Posted in reply to Fawzi Mohamed | 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 Re: JSON in D | ||||
|---|---|---|---|---|
| ||||
Posted in reply to Fawzi Mohamed | 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 Re: JSON in D | ||||
|---|---|---|---|---|
| ||||
Posted in reply to Christopher Wright | 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 | |||
Copyright © 1999-2021 by the D Language Foundation
Permalink
Reply