Read JSON file with Swift 3
<p>I have a JSON file called <em>points.json</em>, and a read function like:</p>

<pre><code>private func readJson() {
    let file = Bundle.main.path(forResource: "points", ofType: "json")
    let data = try? Data(contentsOf: URL(fileURLWithPath: file!))
    let jsonData = try? JSONSerialization.jsonObject(with: data!, options: []) as! [String:Any]
    print(jsonData)
}
</code></pre>

<p>It does not work, any help?</p>