Fixing the json text