I have string like:
{
'singleQuesResponses': {
'28': '',
'14': '',
'27': '',
'26': ''
},
'org_apache_struts_taglib_html_TOKEN': 'a1553f25303435076412b5ca7299b936',
'quesResponses': {
'some': 'data'
}
}
when i post it in python requests like:
data = json.loads(data)
page = requests.post('http://localhost/chilivery/index.php', data=data, cookies=bcookies)
then value that post is something like this:
array(3) { ["quesResponses"]=> string(4) "some" ["singleQuesResponses"]=> string(2) "14" ["org_apache_struts_taglib_html_TOKEN"]=> string(32) "a1553f25303435076412b5ca7299b936" }
but i expect:
array(3) { ["quesResponses"]=> array["some"=>'data'] ["singleQuesResponses"]=> string(2) "14" ["org_apache_struts_taglib_html_TOKEN"]=> string(32) "a1553f25303435076412b5ca7299b936" }
I mean why 'some' is not sent by value as array and the only first key of it send as a string ?