fast
fast copied to clipboard
how to read single value of a key? /fast/json.d(1208): Assertion failure
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
This is a bug in the non-validating parser that is unnesting once too often. I haven't worked on the code in quite a while and don't want to break something, so I want to be in the right mind set first.