title: How can I return a json of files with python flask-restfull?
body: <p>I'm trying to send two files in a json object with flask restfull and send_file. </p>
  
  <p>When I try to access the json object on client side i get this error:</p>
  
  <pre><code>TypeError: Object of type 'Response' is not JSON serializable
  </code></pre>
  
  <p>This is what i do i my flask app:</p>
  
  <pre><code>class Download(Resource):
      def get(self):
          try:
              return {"file1" : send_file('uploads/kode.png'), "file2" : send_file('uploads/kode.png')}, 200
          except:
              return {"message" : "File not found!"}, 404
  </code></pre>
  
  <p>How can I return a json of files? </p>