remove dependency on cJSON and use Qt instead