|
Cute Chess
0.1
|
A JSON (JavaScript Object Notation) parser. More...
#include <jsonparser.h>
Public Member Functions | |
| qint64 | errorLineNumber () const |
| QString | errorString () const |
| bool | hasError () const |
| JsonParser (QTextStream &stream) | |
| QVariant | parse () |
A JSON (JavaScript Object Notation) parser.
JsonParser parses JSON data from a text stream and converts it into a QVariant.
JSON specification: http://json.org/
| JsonParser::JsonParser | ( | QTextStream & | stream | ) |
Creates a new parser that reads data from stream.
| qint64 JsonParser::errorLineNumber | ( | ) | const |
Returns the line number on which the error occured.
| QString JsonParser::errorString | ( | ) | const |
Returns a detailed description of the error.
| bool JsonParser::hasError | ( | ) | const |
Returns true if a parsing error occured.
| QVariant JsonParser::parse | ( | ) |
Parses JSON data from the stream.
Returns a null QVariant object if a parsing error occurs. Use hasError() to check for errors.
1.8.11