Re: Recommendations for best JSON lib?

2019-04-20 Thread evilrat via Digitalmars-d-learn
On Saturday, 20 April 2019 at 20:44:22 UTC, Guillaume Piolat wrote: On Saturday, 20 April 2019 at 18:49:07 UTC, Nick Sabalausky (Abscissa) wrote: I only need to read arbitrary JSON data, no need for writing/(de)serialization. std.json is simple as pie. However IIRC it fails with trailing co

Re: Unexpected behaviour in associative array

2019-04-20 Thread 9il via Digitalmars-d-learn
On Saturday, 20 April 2019 at 22:16:22 UTC, Arredondo wrote: On Saturday, 20 April 2019 at 14:24:34 UTC, 9il wrote: On Friday, 19 April 2019 at 12:37:10 UTC, Arredondo wrote: Slice!(Contiguous, [2], byte*) payload; BTW, any reason not to use the new version of ndslice? For new API it wou

Re: Unexpected behaviour in associative array

2019-04-20 Thread Arredondo via Digitalmars-d-learn
On Saturday, 20 April 2019 at 14:24:34 UTC, 9il wrote: On Friday, 19 April 2019 at 12:37:10 UTC, Arredondo wrote: Slice!(Contiguous, [2], byte*) payload; BTW, any reason not to use the new version of ndslice? For new API it would be: Slice!(byte*, 2, Contiguous) or just Slice!(byte*, 2

Re: Recommendations for best JSON lib?

2019-04-20 Thread Guillaume Piolat via Digitalmars-d-learn
On Saturday, 20 April 2019 at 18:49:07 UTC, Nick Sabalausky (Abscissa) wrote: I only need to read arbitrary JSON data, no need for writing/(de)serialization. std.json is simple as pie. import std.json: parseJSON; import std.file: read; JSONValue dubFile = parseJSON(cast(string)(r

Recommendations for best JSON lib?

2019-04-20 Thread Nick Sabalausky (Abscissa) via Digitalmars-d-learn
I only need to read arbitrary JSON data, no need for writing/(de)serialization.

Re: Unexpected behaviour in associative array

2019-04-20 Thread 9il via Digitalmars-d-learn
On Friday, 19 April 2019 at 12:37:10 UTC, Arredondo wrote: Slice!(Contiguous, [2], byte*) payload; BTW, any reason not to use the new version of ndslice? For new API it would be: Slice!(byte*, 2, Contiguous) or just Slice!(byte*, 2)