refs #911, utility functions for cut and paste JSON

This commit is contained in:
Klaus Basan
2017-03-23 01:32:49 +01:00
committed by Mathew Sutcliffe
parent 6c752b81f5
commit b785e32256
3 changed files with 25 additions and 4 deletions

View File

@@ -250,6 +250,14 @@ namespace BlackMisc
//! Merges an incremental json object into an existing one
BLACKMISC_EXPORT QJsonObject applyIncrementalObject(const QJsonObject &previousObject, const QJsonObject &incrementalObject);
//! Looks like swift JSON?
//! \remark Quick check if the string could be a valid JSON string
BLACKMISC_EXPORT bool looksLikeJson(const QString &json);
//! Looks like swift JSON?
//! \remark Quick check if the string could be a valid swift JSON string
BLACKMISC_EXPORT bool looksLikeSwiftJson(const QString &json);
/*!
* Load JSON file and init by that
*/