json.extract! customer, :id, :name, :phone, :notes, :email, :birthyear, :created_at, :updated_at json.url customer_url(customer, format: :json)