Fixing json response for edit request