[yajl-d] hello world with json arrays

Jack via Digitalmars-d-learn digitalmars-d-learn at puremagic.com
Sat Oct 11 21:17:40 PDT 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.


More information about the Digitalmars-d-learn mailing list