title: Flask-RESTful API does not return a dictionary as a json format
body: <p>I am using flask-restful api. When I change <code>debug=True</code> to <code>debug=False</code> I don't receive data as a json format. This is the example code:</p>
  
  <pre><code>from flask import Flask, jsonify, Response
  from flask_restful import Resource, Api
  import json
  
  app = Flask(__name__)
  
  # Create the API
  api = Api(app)
  
  @app.route('/')
  def index():
      return "HELLO WORLD"
  
  
  class tests(Resource):
  
      def get(self):
          #return json.dumps({"A":1, "B":2}, sort_keys=False, indent=4)
          return jsonify({"A":1, "B":2}) 
  
  api.add_resource(tests, '/&lt;string:identifier&gt;')
  
  if __name__ == '__main__':
      app.run(debug=False)
  </code></pre>
  
  <p>with json.dumps(dictionary) it returns:</p>
  
  <blockquote>
    <p><code>"{\n    \"A\": 1,\n    \"B\": 2\n}"</code></p>
  </blockquote>
  
  <p>but I expect:</p>
  
  <pre><code>{
    "A": 1,
    "B": 2
   }
  </code></pre>