You signed in with another tab or window. Reload to refresh your session.You signed out in another tab or window. Reload to refresh your session.You switched accounts on another tab or window. Reload to refresh your session.Dismiss alert
This results in:[{"id":"1","name ":"John"},{"id":3,"name":"John"}]`
The issue seems to be Ln 121: subValue = destValue.toArray()[usedPropertyName.toInt()];
usedPropertyName is empty which results in casting to 0 instead of the actual index (1). Replacing the line with: subValue = destValue.toArray()[arrayIndex];
seems to work.
The text was updated successfully, but these errors were encountered:
Consider the following example:
` QJsonArray arr;
{
QJsonObject obj;
obj["name"] = "John";
obj["id"] = "1";
arr.push_back(obj);
}
{
QJsonObject obj;
obj["name"] = "Jane";
obj["id"] = "2";
arr.push_back(obj);
}
This results in:
[{"id":"1","name ":"John"},{"id":3,"name":"John"}]`The issue seems to be Ln 121:
subValue = destValue.toArray()[usedPropertyName.toInt()];
usedPropertyName is empty which results in casting to 0 instead of the actual index (1). Replacing the line with:
subValue = destValue.toArray()[arrayIndex];
seems to work.
The text was updated successfully, but these errors were encountered: