Re: Getting underlying struct for parseJSON

2017-03-01 Thread Alexey H via Digitalmars-d-learn
On Tuesday, 28 February 2017 at 21:21:30 UTC, Adam D. Ruppe wrote: On Tuesday, 28 February 2017 at 20:27:25 UTC, Alexey H wrote: [...] It doesn't actually generate one, it just returns a tagged union (a kind of dynamic type). [...] Superb, Adam, thank you! I need to check out inspector.

Re: Getting underlying struct for parseJSON

2017-02-28 Thread Seb via Digitalmars-d-learn
On Tuesday, 28 February 2017 at 20:48:33 UTC, Petar Kirov [ZombineDev] wrote: On Tuesday, 28 February 2017 at 20:27:25 UTC, Alexey H wrote: [...] If you really care about performance, have a look this: http://forum.dlang.org/post/20151014090114.60780ad6@marco-toshiba std.json is not tuned

Re: Getting underlying struct for parseJSON

2017-02-28 Thread Adam D. Ruppe via Digitalmars-d-learn
On Tuesday, 28 February 2017 at 20:27:25 UTC, Alexey H wrote: So, my real question is: can i actually, by any change, get the description of an underlying struct that the call to parseJSON generates? It doesn't actually generate one, it just returns a tagged union (a kind of dynamic type).

Re: Getting underlying struct for parseJSON

2017-02-28 Thread Alexey H via Digitalmars-d-learn
On Tuesday, 28 February 2017 at 20:48:33 UTC, Petar Kirov [ZombineDev] wrote: On Tuesday, 28 February 2017 at 20:27:25 UTC, Alexey H wrote: Hello, guys! I'm working on a project that involves parsing of huge JSON datasets in real-time. Just an example of what i'm dealing with is here:

Re: Getting underlying struct for parseJSON

2017-02-28 Thread via Digitalmars-d-learn
On Tuesday, 28 February 2017 at 20:27:25 UTC, Alexey H wrote: Hello, guys! I'm working on a project that involves parsing of huge JSON datasets in real-time. Just an example of what i'm dealing with is here:

Getting underlying struct for parseJSON

2017-02-28 Thread Alexey H via Digitalmars-d-learn
Hello, guys! I'm working on a project that involves parsing of huge JSON datasets in real-time. Just an example of what i'm dealing with is here: https://gist.githubusercontent.com/gdmka/125014058bb7d7f01b867fac56300a61/raw/f0c6b5be5fb01b16dd83f07c577b72f76f72c855/data.json Can't think of