mirror of
https://github.com/PrismLauncher/PrismLauncher.git
synced 2026-06-29 01:54:20 +03:00
Check specifically for GarbageAtEnd error
- Out parameter for garbage data\n- Rename parseUntilMalformed to parseUntilGarbage Signed-off-by: Dylan Schooner <dschooner05@gmail.com>
This commit is contained in:
parent
9c7fe72f9c
commit
51b47050f9
4 changed files with 11 additions and 7 deletions
|
|
@ -107,8 +107,8 @@ QJsonArray toJsonArray(const QList<T>& container)
|
|||
|
||||
////////////////// READING ////////////////////
|
||||
|
||||
// Attempt to parse JSON up until unexpected data is encountered
|
||||
QJsonDocument parseUntilMalformed(const QByteArray& json, QJsonParseError* error = nullptr);
|
||||
// Attempt to parse JSON up until garbage is encountered
|
||||
QJsonDocument parseUntilGarbage(const QByteArray& json, QJsonParseError* error = nullptr, QString* garbage = nullptr);
|
||||
|
||||
/// @throw JsonException
|
||||
template <typename T>
|
||||
|
|
|
|||
Loading…
Add table
Add a link
Reference in a new issue