Updated JSON handling code

We must either return an QJsonArray or a QJsonObject.  It can’t be
generic.

Removed debug logging.