Parsing a sequence of JSON values that are not enclosed in a JSON array
bergtwvd opened this issue · 0 comments
bergtwvd commented
Parsing a sequence of JSON objects is not possible, but the standard says:
JsonParser can be used to parse sequence of JSON values that are not enclosed in a JSON array, e.g. { } { }. The following code demonstrates how to parse such sequence.
JsonParser parser = Json.createParser(...);
while (parser.hasNext) {
parser.next(); // advance parser state
JsonValue value = parser.getValue();
}
See also: leadpony/joy#14