May 16, 2020 Re: Fastest JSON parser in the world is a D project | ||||
---|---|---|---|---|
| ||||
Posted in reply to Marco Leise | 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 |
Copyright © 1999-2021 by the D Language Foundation