Skip to content

Instantly share code, notes, and snippets.

@yannick
Created April 7, 2016 22:33
Show Gist options
  • Select an option

  • Save yannick/08d750938a1211dae3262ffe9513f266 to your computer and use it in GitHub Desktop.

Select an option

Save yannick/08d750938a1211dae3262ffe9513f266 to your computer and use it in GitHub Desktop.
import std.stdio : stdin;
auto lines = stdin.byLine();
foreach(line; lines)
{
import parser : parse;
string rawJson = cast(string) line;
string will_be_garbage = rawJson["a"][0].get!string;
}
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment