stdx.data.json - enhancement suggestions
Ilya Yaroshenko via Digitalmars-d-learn
digitalmars-d-learn at puremagic.com
Fri May 1 13:04:56 PDT 2015
This line can be removed:
.map!(ch => ch.idup)
On Friday, 1 May 2015 at 20:02:46 UTC, Ilya Yaroshenko wrote:
> Current std.stdio is deprecated. This ad-hoc should works.
>
> auto json = File("fileName")
> .byChunk(1024 * 1024) //1 MB. Data cluster equals 1024 * 4
> .map!(ch => ch.idup)
> .joiner
> .map!(b => cast(char)b)
> .parseJSON;
More information about the Digitalmars-d-learn
mailing list