Return json response on POST request for space_edit and area_edit views