I\'m trying to build a simple API using Flask, in which I now want to read some POSTed JSON. I do the POST with the Postman Chrome extension, and the JSON I POST is simply <
Assuming you've posted valid JSON with the application/json content type, request.json will have the parsed JSON data.
application/json
request.json
from flask import Flask, request, jsonify app = Flask(__name__) @app.route('/echo', methods=['POST']) def hello(): return jsonify(request.json)