Poco::JSON

class DefaultHandler

Library: JSON
Package: JSON
Header: Poco/JSON/DefaultHandler.h

Description

Provides a default handler for the JSON parser. This handler will build up an object or array based on the handlers called by the parser.

Inheritance

Direct Base Classes: Handler

All Base Classes: Handler

Member Summary

Member Functions: endArray, endObject, key, null, result, startArray, startObject, value

Inherited Functions: endArray, endObject, key, null, startArray, startObject, value

Constructors

DefaultHandler

DefaultHandler();

Default Constructor

Destructor

~DefaultHandler virtual

virtual ~DefaultHandler();

Destructor

Member Functions

endArray virtual

void endArray();

Handles a ], meaning the array is read

See also: Poco::JSON::Handler::endArray()

endObject virtual

void endObject();

Handles a }, meaning the object is read

See also: Poco::JSON::Handler::endObject()

key virtual

void key(
    const std::string & k
);

A key is read

See also: Poco::JSON::Handler::key()

null virtual inline

virtual void null();

A null value is read

See also: Poco::JSON::Handler::null()

result inline

Dynamic::Var result() const;

Returns the result of the parser. Which is an object or an array.

startArray virtual

void startArray();

Handles a [, meaning a new array will be read

See also: Poco::JSON::Handler::startArray()

startObject virtual

void startObject();

Handles a {, meaning a new object will be read

See also: Poco::JSON::Handler::startObject()

value virtual inline

virtual void value(
    int v
);

An integer value is read

See also: Poco::JSON::Handler::value()

value virtual

virtual void value(
    Int64 v
);

A 64-bit integer value is read

See also: Poco::JSON::Handler::value()

value virtual

virtual void value(
    const std::string & s
);

A string value is read.

See also: Poco::JSON::Handler::value()

value virtual

virtual void value(
    double d
);

A double value is read

See also: Poco::JSON::Handler::value()

value virtual

virtual void value(
    bool b
);

A boolean value is read

See also: Poco::JSON::Handler::value()