JSON Serialization Failed when classifying images with Watson (iOS - Swift)
<p>I want to create an application that uses the camera and photo library to allow users to take photos and have them classified.
I have configured my Swift environment and have not been able to classify images even when including a URL from the internet. By the way, I'm using <a href="https://github.com/watson-developer-cloud/ios-sdk" rel="nofollow">https://github.com/watson-developer-cloud/ios-sdk</a></p>

<p>Here is a simple code:</p>

<pre><code>import VisualRecognitionV3

let apiKey = "your-apikey-here"
let version = "YYYY-MM-DD" // use today's date for the most recent version
let visualRecognition = VisualRecognition(apiKey: apiKey, version: version)

let url = "http://blog.fashionsealhealthcare.com/sites/default/files/styles/blog_image_display/public/field/image/blogs/ibm_watson.png"
let success = { classifiedImages in
        print(classifiedImages) }
visualRecognition.classify(url: url, success: success)
</code></pre>

<p>However, I'm receiving the following error:</p>

<pre><code>JSON Serialization Failed. Could not parse the following data.
{
    "error": {
        "code": 400,
        "description": "Invalid output language specified.",
        "error_id": "parameter_error"
    },
    "images_processed": 0
}
</code></pre>

<p>Any ideas on what is wrong?</p>

<p>Thanks in advance.</p>