Thrown when uPickle tries to convert a JSON blob into a given data structure but fails because part the blob is invalid
Thrown when uPickle tries to convert a JSON blob into a given data structure but fails because part the blob is invalid
The section of the JSON blob that uPickle tried to convert. This could be the entire blob, or it could be some subtree.
Human-readable text saying what went wrong
Version of visitArray() without source index information.
Visit the number in its text representation.
Visit the number in its text representation.
unparsed text representation of the number.
index of the .
, relative to the start of the CharSequence, or -1 if omitted
index of e
or E
relative to the start of the CharSequence, or -1 if omitted
json source position at the start of the number being visited
Visit the number in its text representation, without source index information.
Visit the number in its text representation, without source index information.
unparsed text representation of the number.
index of the .
, relative to the start of the CharSequence, or -1 if omitted
index of e
or E
relative to the start of the CharSequence, or -1 if omitted
Js.visitNum() for an example of parsing into numeric types
Optional handler for raw double values; can be overriden for performance in cases where you're translating directly between numbers to avoid the overhead of stringifying and re-parsing your numbers (e.g.
Optional handler for raw double values; can be overriden for performance in cases where you're translating directly between numbers to avoid the overhead of stringifying and re-parsing your numbers (e.g. the WebJson transformer gets raw doubles from the underlying Json.parse).
Delegates to visitNum
if not overriden
Unused by raw json parsers such as ByteBasedParser or CharBasedParser.
the input number
json source position at the start of the number being visited
Convenience methods to help you compute the decimal-point-index and exponent-index of an arbitrary numeric string
Convenience methods to help you compute the decimal-point-index and exponent-index of an arbitrary numeric string
the text string being visited
json source position at the start of the string being visited
json source position at the start of the {
being visited
a ObjVisitor used for visiting the keys/values of the object
a ObjVisitor used for visiting the keys/values of the object
the text string being visited
A very small, very simple JSON AST that uPickle uses as part of its serialization process. A common standard between the Jawn AST (which we don't use so we don't pull in the bulk of Spire) and the Javascript JSON AST.