I'm trying to post data to this view, or at least get a working response:
in flask_app.py:
@app.route('/json-example', methods=['POST'])
def json_example():
req_data = request.get_json()
language = req_data['language']
framework = req_data['framework']
python_version = req_data['version_info']['python'] #two keys are needed because of the nested object
example = req_data['examples'][0] #an index is needed because of the array
boolean_test = req_data['boolean_test']
return '''
The language value is: {}
The framework value is: {}
The Python version is: {}
The item at index 0 in the example list is: {}
The boolean value is: {}'''.format(language, framework, python_version, example, boolean_test)