Added JSON return to update method