Thread overview
Building JSON until 2.067
Feb 05, 2015
Matt Kline
Feb 05, 2015
Jakob Ovrum
Feb 05, 2015
BlackEdder
Feb 05, 2015
Jakob Ovrum
Feb 05, 2015
Meta
February 05, 2015
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?
February 05, 2015
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
February 05, 2015
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.
February 05, 2015
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
February 05, 2015
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
February 05, 2015
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.
February 05, 2015
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