Fastest JSON parser in the world is a D project
mw
mingwu at gmail.com
Sat May 16 08:54:19 UTC 2020
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
More information about the Digitalmars-d-announce
mailing list