:add: use str when json.loads does not work before calling a web service