move all json parsing and encoding to member functions in baseengine
use QJsonDocument to convert to and from json
remove the now unused jsonqt