You can use std.json or create TrustedInputRangeShell template with @trasted methods:

struct TrustedInputRangeShell(Range)
{
    Range* data;

    auto front() @property @trusted { return (*data).front; }

    //etc
}

But I am not sure about other parseJSONStream bugs.

Reply via email to