780 if (!json.trimmed().isEmpty()) { |
780 if (!json.trimmed().isEmpty()) { |
781 const auto& formattedJson = QString("%1").arg(json); |
781 const auto& formattedJson = QString("%1").arg(json); |
782 QJsonDocument newsteps = QJsonDocument::fromJson(formattedJson.toUtf8(), &parseError); |
782 QJsonDocument newsteps = QJsonDocument::fromJson(formattedJson.toUtf8(), &parseError); |
783 |
783 |
784 if (parseError.error != QJsonParseError::NoError) { |
784 if (parseError.error != QJsonParseError::NoError) { |
785 qDebug() << "Parse error: " << parseError.errorString() << "at" << parseError.offset; |
785 qWarning() << "Parse error: " << parseError.errorString() << "at" << parseError.offset; |
786 } else { |
786 } else { |
787 /* |
787 /* |
788 * Got the json data in the steps array, replace the product steps. |
788 * Got the json data in the steps array, replace the product steps. |
789 */ |
789 */ |
790 double infuse = 0; |
790 double infuse = 0; |