fixed PUT trying to return JSON