request.post to a php server that requires info of a 2D array
Ive been playing around with the servers of our company for a while, posting data to .php to make my work easier, using python. A recent problem is: this time the .php server requires a 2D array, Iām not familiar with php at all, but what the server requires really is something like somedata[[ākey1ā]] somedata[[ākey2ā]] And it seems to me pretty naturally that I should do a [{ākey1ā: value1, ākeyā2: value2}] in my python codes. Thereās no other way to create a 2D array where the values have keys, in python, right? The problem is when I post the dict-in-list data, the server keeps saying the parameters are wrong. Iāve asked the guy in our tech team why this is happening, but he doesnāt know python nor the answer. Iāve also searched āposting to php from pythonā on stackoverflow, and didnāt quite find similar questions. Iām a bit afraid that this is a far too stupid question that no one bothers to ask, but itās really weird that since thereās no other way to represent [[ākey1ā=> value1, ākey2ā=> value2]] In python than a dictionary in a list. Is there? Any help would be appreciated. I personally think that the tech guy didnāt write it correctly on his part, Iāll never know. Ps. Iām also confused because if I get data from a php server that is a similar 2D array, it simply translates into a dictionary inside a list. In fact, thatās how I got the list data in the first place: first getting it from one php, then passing it to another. My code: https://code.sololearn.com/c0jj85CH4zoQ/?ref=app