VAT  3.0
Video Analysis Tool
Namespaces | Enumerations | Functions
json.cpp File Reference
#include <QDateTime>
#include "json.h"

Namespaces

 QtJson
 A JSON data parser.
 

Enumerations

enum  JsonToken {
  JsonTokenNone = 0, JsonTokenCurlyOpen = 1, JsonTokenCurlyClose = 2, JsonTokenSquaredOpen = 3,
  JsonTokenSquaredClose = 4, JsonTokenColon = 5, JsonTokenComma = 6, JsonTokenString = 7,
  JsonTokenNumber = 8, JsonTokenTrue = 9, JsonTokenFalse = 10, JsonTokenNull = 11
}
 

Functions

template<typename T >
QByteArray QtJson::serializeMap (const T &map, bool &success)
 
QVariant QtJson::parse (const QString &json)
 
QVariant QtJson::parse (const QString &json, bool &success)
 
QByteArray QtJson::serialize (const QVariant &data)
 
QByteArray QtJson::serialize (const QVariant &data, bool &success)
 
QString QtJson::serializeStr (const QVariant &data)
 
QString QtJson::serializeStr (const QVariant &data, bool &success)
 
void QtJson::setDateTimeFormat (const QString &format)
 
void QtJson::setDateFormat (const QString &format)
 
QString QtJson::getDateTimeFormat ()
 
QString QtJson::getDateFormat ()
 

Detailed Description

QtJson - A simple class for parsing JSON data into a QVariant hierarchies and vice-versa. Copyright (C) 2011 Eeli Reilin

This program is free software: you can redistribute it and/or modify it under the terms of the GNU General Public License as published by the Free Software Foundation, either version 3 of the License, or (at your option) any later version.

This program is distributed in the hope that it will be useful, but WITHOUT ANY WARRANTY; without even the implied warranty of MERCHANTABILITY or FITNESS FOR A PARTICULAR PURPOSE. See the GNU General Public License for more details.

You should have received a copy of the GNU General Public License along with this program. If not, see http://www.gnu.org/licenses/.