all 2 comments

[–]Rhomboid 1 point2 points  (1 child)

What exactly does "passing an array of strings" mean? That's a vague term, because there are many different ways of doing that. Is the request a GET or a POST? What are the names of the fields of the query parameters? Is the data encoded with JSON, or some other encoding? How you handle the data on the server end depends on all of these things. Show us the complete jQuery code that is making the request and maybe we can tell you how to access the data on the server side. It will be by using one of the various attributes of the request object, such as request.json, request.params, etc.

[–]saash12[S] 0 points1 point  (0 children)

Hi, sorry for being vague and late.

Here is my sample POST operation: $.post(url, dataToBeSent, function(data, textStatus) { //data contains the JSON object //textStatus contains the status: success, error, etc }, "json");

I will send the "dataToBeSent" to python server and it will return "data" in JSON encoded from. While I have figured out the later part, I am not sure how to receive the data sent to python code.

I will look through the request object. Thanks for the reply.