correct search bad json encoding for search function
replace QVariantMap with QJsonObject