Skip to content

how to read single value of a key? /fast/json.d(1208): Assertion failure #16

@mw66

Description

@mw66
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

Metadata

Metadata

Assignees

No one assigned

    Labels

    No labels
    No labels

    Projects

    No projects

    Milestone

    No milestone

    Relationships

    None yet

    Development

    No branches or pull requests

    Issue actions