Utility class. More...
#include <JsonUtils.h>
Static Public Member Functions | |
| static void | printJSON (QJsonObject data, bool indented=true) |
| static QJsonObject | stringToJSON (QString dataString, bool print=false) |
| Creates a QJsonObject from a string. | |
Utility class.
useful for simplifying test code
|
inlinestatic |
Referenced by stringToJSON().
|
inlinestatic |
Creates a QJsonObject from a string.
e.g. JsonUtils::stringToJSON(R"json({ "field1": { "field2": 0} })json"));
| dataString | the input string |
| if true prints the resulting a formatted json to stdout |
References printJSON().