json.extract! character, :id, :name, :health, :strength, :intelligence, :agility, :luck, :created_at, :updated_at json.url character_url(character, format: :json)