summaryrefslogtreecommitdiff
path: root/compat
diff options
context:
space:
mode:
Diffstat (limited to 'compat')
-rw-r--r--compat/json/compat.go2
1 files changed, 1 insertions, 1 deletions
diff --git a/compat/json/compat.go b/compat/json/compat.go
index 0c9e800..48d708b 100644
--- a/compat/json/compat.go
+++ b/compat/json/compat.go
@@ -183,7 +183,7 @@ func convertDecodeError(err error) error {
default:
err = &SyntaxError{
msg: terr.Err.Error(),
- Offset: terr.Offset,
+ Offset: terr.Offset + 1,
}
}
case *lowmemjson.DecodeTypeError: