JsonExtractor.IterateArray

Abstract JSON array iterator. As an alternative to the use of an iteration callback delegate with GetArray one can derive from this class and implement setField().

struct JsonExtractor
static abstract
class IterateArray : IterateAggregate {}

Constructors

this
this(Parser json, bool skip_null)

Constructor

Inherited Members

From IterateAggregate

start_type
Type start_type;
end_type
Type end_type;

Start and end token type, usually BeginObject/EndObject or BeginArray/EndArray.

exception
JsonException exception;

Exception throw to indicate errors during parsing.

set_
void set_()

Invoked by super.set() to iterate over the JSON object or array. Expects the type of the current token to be - the start type if this.skip_null is false or - the start type or null if this.skip_null is true.

setField
bool setField(uint i, Type type, cstring name, cstring value)

Abstract iteration method, must either use an appropriate GetField (or subclass) instance to handle and move the parser to the end of the field or indicate that this field is ignored and unhandled.

Meta