Check if params[:postfix] is empty or nil.
Add ability to return JSON to a POST request.