Controller returns id as a json object