I am using big json configuration files and trying to produce useful user error messages, at least including the current line in the file.
So my question is: is there any way to retrieve the underlying reader's offset from UnmarshalJSON() to be able to return parsing or validation errors including it?
go version go1.8.3 linux/amd64
The text was updated successfully, but these errors were encountered:
Julio-Guerra
changed the title
encoding/json: retrieving current file offset in UnmarshalJSON()?
encoding/json: retrieving underlying reader offset in UnmarshalJSON()?
Aug 24, 2017
I am using big json configuration files and trying to produce useful user error messages, at least including the current line in the file.
So my question is: is there any way to retrieve the underlying reader's offset from
UnmarshalJSON()
to be able to return parsing or validation errors including it?go version go1.8.3 linux/amd64
The text was updated successfully, but these errors were encountered: