LeechCraft 0.6.70-16373-g319c272718
Modular cross-platform feature rich live environment.
Loading...
Searching...
No Matches
serializejson.cpp File Reference
#include "serializejson.h"
#include <QJsonDocument>
#include <QFile>
#include "either.h"
+ Include dependency graph for serializejson.cpp:

Go to the source code of this file.

Namespaces

namespace  LC
 
namespace  LC::Util
 

Typedefs

using LC::Util::SerializeResult_t = Either<QString, Void>
 

Functions

QByteArray LC::Util::SerializeJson (const QVariant &var, bool compact=true)
 Serializes the given var to JSON representation.
 
SerializeResult_t LC::Util::SerializeJsonToFile (const QString &filename, const QVariant &var, bool compact)