<p dir="auto"><a href="http://flask.pocoo.org/docs/flask-docs.pdf" rel="nofollow">http://flask.pocoo.org/docs/flask-docs.pdf</a>  and <a href="http://flask.pocoo.org/docs/flask-docs.zip" rel="nofollow">http://flask.pocoo.org/docs/flask-docs.zip</a> return 404 errors.</p>
<p dir="auto">Hi, I was following the tutorial on Flask at <a href="http://flask.pocoo.org/docs/0.10/tutorial/" rel="nofollow">this</a>.<br>
And I tried to return json data so I use <code class="notranslate">jsonify</code></p>
<p dir="auto">I found out that jsonify use <code class="notranslate">dict()</code> to convert params into a dict. But this will remove items with duplicate key.</p>
<p dir="auto">In my case, I querried the data using this query</p>
<p dir="auto"><code class="notranslate">cur = g.db.execute('SELECT title, text from entries order by id desc')</code></p>
<p dir="auto">The data was:</p>
<p dir="auto"><code class="notranslate">[(u'Nope', u'hi, this is anoooother things'), (u'Nope', u'This is another'), (u'Hi', u'This is a sample entry')]</code></p>
<p dir="auto">So the jsonify just return:</p>
<p dir="auto"><code class="notranslate">{ "Hi": "This is a sample entry",  "Nope": "This is another" }</code></p>
<p dir="auto">The code work correctly, but I don't know if this is intended or not?</p>