Poco::Remoting::JSON

class JSONParser

Library: Remoting/JSON
Package: JSONParser
Header: Poco/Remoting/JSON/JSONParser.h

Description

A simple parser for JSON.

Member Summary

Member Functions: isEOF, isWhitespace, parse, parseArray, parseObject, parseScalar, parseString, parseUnicode, parseValue, skipWhitespace

Constructors

JSONParser

JSONParser(
    std::istream & istr
);

Creates a JSONParser for parsing the given stream.

Destructor

~JSONParser

~JSONParser();

Destroys the JSONParser.

Member Functions

parse

JSValue::Ptr parse();

Reads a JSValue from the stream.

isEOF protected static inline

static bool isEOF(
    int ch
);

isWhitespace protected static inline

static bool isWhitespace(
    int ch
);

parseArray protected

int parseArray(
    int ch,
    JSValue::Ptr & pArray
);

parseObject protected

int parseObject(
    int ch,
    JSValue::Ptr & pObject
);

parseScalar protected

int parseScalar(
    int ch,
    JSValue::Ptr & pScalar
);

parseString protected

int parseString(
    int ch,
    std::string & str
);

parseUnicode protected

int parseUnicode(
    int ch,
    std::string & str
);

parseValue protected

int parseValue(
    int ch,
    JSValue::Ptr & pValue
);

skipWhitespace protected

int skipWhitespace(
    int ch
);