Utility class. More...
#include <JsonUtils.h>
Collaboration diagram for JsonUtils: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 |
|
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().
Here is the call graph for this function: