def sendJSON(command): data = '' try: data = xbmc.executeJSONRPC(stringUtils.uni(command)) except UnicodeEncodeError: data = xbmc.executeJSONRPC(stringUtils.asciis(command)) return json.loads(data.decode('utf-8')).get('result', {})
def sendJSON(command): data = '' try: data = xbmc.executeJSONRPC(stringUtils.uni(command)) except UnicodeEncodeError: data = xbmc.executeJSONRPC(stringUtils.asciis(command)) return data.decode('utf-8') #uni(data)