replacement of old json parsing code with cx_json wrapper