October 12, 2014
Disclaimer: Don't eat me.

I was just wondering to those who are experienced in using yajl-d to show me the proper implementation of using it with arrays.
So far this is what I understand from parsing Json Objects:

> class random{
> private string foo;
> private string bar;
>}

>void main(string [] args){
>random rand = decode!random(to!string(read("json_file.json")));
>//do stuff

Now I'm just wondering how can I implement it with Json arrays.
Just some information or a place to start with is all I ask.
Thank you.
October 12, 2014
On Sunday, 12 October 2014 at 04:17:42 UTC, Jack wrote:
> Disclaimer: Don't eat me.
>
> I was just wondering to those who are experienced in using yajl-d to show me the proper implementation of using it with arrays.
> So far this is what I understand from parsing Json Objects:
>
>> class random{
>> private string foo;
>> private string bar;
>>}
>
>>void main(string [] args){
>>random rand = decode!random(to!string(read("json_file.json")));
>>//do stuff
>
> Now I'm just wondering how can I implement it with Json arrays.
> Just some information or a place to start with is all I ask.
> Thank you.

Nvm for this. I found a code snippet from sir Ali that suited the job.
http://forum.dlang.org/thread/jkndf7$ma3$1@digitalmars.com