| 10 | namespace JsonUtils { |
| 11 | |
| 12 | bool readFile(const QString& path, QJsonObject& obj, Logger* log, bool ignError) |
| 13 | { |
| 14 | QString data; |
| 15 | if (!FileUtils::readFile(path, data, log, ignError)) |
| 16 | return false; |
| 17 | |
| 18 | if (!parse(path, data, obj, log)) |
| 19 | return false; |
| 20 | |
| 21 | return true; |
| 22 | } |
| 23 | |
| 24 | bool readSchema(const QString& path, QJsonObject& obj, Logger* log) |
| 25 | { |
no test coverage detected