To enable diagnostics, declare var diagnostics = Diagnostics{};
then call source.enableDiagnostics(&diagnostics);
where source
is either a std.json.Reader
or a std.json.Scanner
that has just been initialized. At any time, notably just after an error, call getLine()
, getColumn()
, and/or getByteOffset()
to get meaningful information from this.