| Commit message (Collapse) | Author | Age | Files | Lines |
|
|
|
| |
It's pointless to add the '-test' suffix to files under the tests/ directory.
|
|
|
|
| |
This should allow easy access to the member name during iteration.
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
| |
If we assume that a JSON object is just an array with a named mapping
then the JsonReader API should be able to descend into objects using the
same API used for arrays.
This obviously is less useful than it sounds if we take a very strict
interpretation of JSON objects as unordered string-to-value mappings; as
the ordering is not guaranteed to be stable, parsers would be fairly
weak against various JSON definitions.
If the JSON format parsed is guaranteed to be stable then an integer
offset might be an easy (albeit slightly less performant) way to access
data.
|
|
|
|
|
| |
Allow retrieving a list of member names from the current cursor position
of the JsonReader. It's useful if you're trying to inspect a JSON tree.
|
|
|
|
|
| |
A JsonReader is useless without a root JsonNode to start walking the
tree from.
|
|
|
|
|
|
|
| |
Since JsonParser has far more methods for parsing a JSON stream we
should just make JsonReader an API for reading an already parsed JSON
tree - in the same way that JsonBuilder does not generate the
stringified version of the JSON tree it builds.
|
|
|
|
| |
We should strive to make JsonBuilder and JsonReader similar in API.
|
|
JsonReader is a simple, cursor-based API for parsing a JSON DOM. It is
similar, in spirit, to the XmlReader API provided by various platforms
and XML parsing libraries.
|