www.digitalmars.com         C & C++   DMDScript  

digitalmars.D - Building JSON until 2.067

reply "Matt Kline" <matt bitbashing.io> writes:
I'm trying to build a small utility for a project at work that 
stores some config on-disk as JSON. Imagine my dismay when I find 
that opIndexAssign hasn't been added to JSONValue until after 
2.066 went out:
https://github.com/D-Programming-Language/phobos/pull/2607

1. Is there any way until 2.067 gets release to build a JSON 
object,
    besides building it as a string?

2. I'm thoroughly confused - something like this would make it 
seem that
    std.json is almost never used "in the wild".
    Is there a JSON library that most other people are using 
instead?
Feb 04 2015
next sibling parent reply Andrei Alexandrescu <SeeWebsiteForEmail erdani.org> writes:
On 2/4/15 5:06 PM, Matt Kline wrote:
 Is there a JSON library that most other people are using instead?
http://vibed.org has a good one. -- Andrei
Feb 04 2015
parent reply "Jakob Ovrum" <jakobovrum gmail.com> writes:
On Thursday, 5 February 2015 at 01:10:18 UTC, Andrei Alexandrescu 
wrote:
 On 2/4/15 5:06 PM, Matt Kline wrote:
 Is there a JSON library that most other people are using 
 instead?
http://vibed.org has a good one. -- Andrei
http://code.dlang.org/packages/std_data_json
Feb 04 2015
parent reply "BlackEdder" <edder tkwsping.nl> writes:
On Thursday, 5 February 2015 at 06:03:38 UTC, Jakob Ovrum wrote:
 On Thursday, 5 February 2015 at 01:10:18 UTC, Andrei 
 Alexandrescu wrote:
 On 2/4/15 5:06 PM, Matt Kline wrote:
 Is there a JSON library that most other people are using 
 instead?
http://vibed.org has a good one. -- Andrei
http://code.dlang.org/packages/std_data_json
http://code.dlang.org/packages/painlessjson http://code.dlang.org/packages/jsonizer
Feb 04 2015
parent reply "Jakob Ovrum" <jakobovrum gmail.com> writes:
On Thursday, 5 February 2015 at 06:18:07 UTC, BlackEdder wrote:
 On Thursday, 5 February 2015 at 06:03:38 UTC, Jakob Ovrum wrote:
 On Thursday, 5 February 2015 at 01:10:18 UTC, Andrei 
 Alexandrescu wrote:
 On 2/4/15 5:06 PM, Matt Kline wrote:
 Is there a JSON library that most other people are using 
 instead?
http://vibed.org has a good one. -- Andrei
http://code.dlang.org/packages/std_data_json
http://code.dlang.org/packages/painlessjson http://code.dlang.org/packages/jsonizer
std.data.json is the vibe.d JSON library, usable without having to pull in all of vibe.d. It was not my intent to advertise it, but rather advertise the best way to use it.
Feb 04 2015
parent Andrei Alexandrescu <SeeWebsiteForEmail erdani.org> writes:
On 2/4/15 10:23 PM, Jakob Ovrum wrote:
 On Thursday, 5 February 2015 at 06:18:07 UTC, BlackEdder wrote:
 On Thursday, 5 February 2015 at 06:03:38 UTC, Jakob Ovrum wrote:
 On Thursday, 5 February 2015 at 01:10:18 UTC, Andrei Alexandrescu wrote:
 On 2/4/15 5:06 PM, Matt Kline wrote:
 Is there a JSON library that most other people are using instead?
http://vibed.org has a good one. -- Andrei
http://code.dlang.org/packages/std_data_json
http://code.dlang.org/packages/painlessjson http://code.dlang.org/packages/jsonizer
std.data.json is the vibe.d JSON library, usable without having to pull in all of vibe.d. It was not my intent to advertise it, but rather advertise the best way to use it.
Sadly there hasn't been progress as of late in pushing it in Phobos. -- Andrei
Feb 04 2015
prev sibling parent "Meta" <jared771 gmail.com> writes:
On Thursday, 5 February 2015 at 01:06:57 UTC, Matt Kline wrote:
 I'm trying to build a small utility for a project at work that 
 stores some config on-disk as JSON. Imagine my dismay when I 
 find that opIndexAssign hasn't been added to JSONValue until 
 after 2.066 went out:
 https://github.com/D-Programming-Language/phobos/pull/2607

 1. Is there any way until 2.067 gets release to build a JSON 
 object,
    besides building it as a string?

 2. I'm thoroughly confused - something like this would make it 
 seem that
    std.json is almost never used "in the wild".
    Is there a JSON library that most other people are using 
 instead?
std.json is both very simple to use, and very feature-light. As far as I know, it was written some time ago and is not up to the current standards of Phobos. The only thing I've used it for is quick one-off projects that were very small in scope.
Feb 04 2015