Library: RemotingNG/JSONRPC
Package: JSONParser
Header: Poco/RemotingNG/JSONRPC/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
static bool isEOF(
int ch
);
isWhitespace
static bool isWhitespace(
int ch
);
parseArray
int parseArray(
int ch,
JSValue::Ptr & pArray
);
parseObject
int parseObject(
int ch,
JSValue::Ptr & pObject
);
parseScalar
int parseScalar(
int ch,
JSValue::Ptr & pScalar
);
parseString
int parseString(
int ch,
std::string & str
);
parseUnicode
int parseUnicode(
int ch,
std::string & str
);
parseValue
int parseValue(
int ch,
JSValue::Ptr & pValue
);
skipWhitespace
int skipWhitespace(
int ch
);