1

I am using Flask now. I was trying to get data sent from jquery ajax. I have read the tutorial but still mix up the use of this two function(I am just getting started with ajax). I would like to know what kind of data they process and return.

Your help will be greatly appreciated.

Ziqi
  • 29
  • 1
  • 3

1 Answers1

2

As the name suggests, get_json() function parses the data into a JSON object.

get_data() parses into a bytestring.

Anshul Dahiya
  • 640
  • 7
  • 11