Closed LittleWally closed 4 years ago
asdf version v0.6.7 (just released) allows getting faulty location.
import asdf;
try
{
auto data = `[1, 2, ]`.parseJson;
}
catch(AsdfException e)
{
import std.conv;
/// zero based index
assert(e.location == 7);
return;
}
How could I determine the position in the JSON string where ASDF deserialisation fails?