Skip to content Skip to sidebar Skip to footer

Typeerror: Expected String Or Buffer Decoding Json In Flask

I'm working with a a distributed system where a php app sends a post request to a python flask app. I have a 2d php array ($data) that looks like: array(3) { [0]=> array(2) {

Solution 1:

@app.route('/index',methods=['POST'])
def index():
    json = request.get_json()

Post a Comment for "Typeerror: Expected String Or Buffer Decoding Json In Flask"