Json in D: clean, simple API

aberba via Digitalmars-d digitalmars-d at puremagic.com
Thu May 11 13:47:17 PDT 2017


On Thursday, 11 May 2017 at 19:49:54 UTC, cym13 wrote:
> On Thursday, 11 May 2017 at 19:33:09 UTC, aberba wrote:
>> Json libs in D seem not straight foward. I've seen several 
>> wrappers and (De)serializers trying to abstract std.json.
>>
>> std_data_json proposed to replace std.json doesnt *seem* to 
>> tackle straigh-forward json process like I find vibe.data.json.
>>
>> Handy stuff I'm not finding but much simple in vibe.data.json 
>> include piecewise construction (constructing json objects like 
>> associative arrays) and vibe.data.json's value.get!T. API feel 
>> also *feels* not straight-forward.
>>
>> Are all the capabilities of std_data_json what I see in its 
>> docs?
>>
>> Why does json seem hard in D and why is std.json still there?
>
> Try https://github.com/tamediadigital/asdf ?

Not much helpful for my use case though it can be really useful 
for json-heavy rest api. Interesting.


More information about the Digitalmars-d mailing list