On Wednesday, 14 October 2015 at 07:35:49 UTC, Marco Leise wrote:
fast.json usage:
auto json = parseTrustedJSON(`{"x":123}`);
Work with a single key from an object:
json.singleKey!"someKey"
json.someKey
Newbie Q: how to get the value?
---------------------------
import std.stdio;
import fast.json;
void main() {
auto json = parseTrustedJSON(`{"x":123}`);
writeln(json.x); // shall I get 123 here?
}
---------------------------
core.exception.AssertError@/home/xxx/.dub/packages/fast-0.3.5/fast/source/fast/json.d(1208):
Assertion failure
dmd v2.092.0