You signed in with another tab or window. Reload to refresh your session.You signed out in another tab or window. Reload to refresh your session.You switched accounts on another tab or window. Reload to refresh your session.Dismiss alert
This adds support for parsing json from the prefix of a string. It
does so via two small api additions:
- Deserializer now has the `into_reader` associated function, which
consume the deserializer and returns reader it has been using.
- StrRead and SliceRead now have the `index` assocaited function,
which reports the byte index of the data which will be read next.
These can be used to parse a single value (or multiple values) from
an input string or buffer, and then recover the next byte position
from the reader. It allows the json parser to be easily integrated
into an outer parser, where the JSON data is sitting inside some
larger non-JSON context.
0 commit comments