Port to Qt5's JSON classes instead of libqjson