Breaking News: Grepper is joining You.com. Read the official announcement!
Check it out

flask request.get_json is null

FishBrawler answered on April 20, 2023 Popularity 1/10 Helpfulness 1/10

Contents


More Related Answers

  • valid json return null on json_decode
  • how to return json response in flask
  • flask return error response
  • flask return status code 200 and json
  • return json with flask
  • how to get json data from url python flask get column
  • request.get_json() return in flask
  • json null

  • flask request.get_json is null

    0

    https://stackoverflow.com/questions/20001229/how-to-get-posted-json-in-flask

    You need to set the request content type to application/json for the .json property and .get_json() method (with no arguments) to work as either will produce None otherwise. 

    Popularity 1/10 Helpfulness 1/10 Language javascript
    Source: Grepper
    Link to this answer
    Share Copy Link
    Contributed on Apr 20 2023
    FishBrawler
    0 Answers  Avg Quality 2/10


    X

    Continue with Google

    By continuing, I agree that I have read and agree to Greppers's Terms of Service and Privacy Policy.
    X
    Grepper Account Login Required

    Oops, You will need to install Grepper and log-in to perform this action.