Removed second argument "true" from json_decode in deleteFromList - was changing the JSON to an assoc array.