Не получается в параметры запроса передать dict

temp.json

{"contributors":["t45hgrt5464",{}],"appid":767,"sharedfile":{"m_parentsDetails":null,"m_parentBundlesDetails":null,"m_bundledChildren":[],"m_ownedBundledItems":[]},"parent_item_reported":false}
from requests import post
from json import load

with open("temp.json", "r") as read_file:
    json = load(read_file)
print(json)

data = \
                {
                    "comment": 11,
                    "count": 10,
                    "sessionid": 'fewkofwekof4r435343g5345g',
                    "extended_data": json,
                    "feature2": "-1"
                }

res = post('https://httpbin.org/post', data=data)
print(res.text)

Вывод в консоль

{'contributors': ['t45hgrt5464', {}], 'appid': 767, 'sharedfile': {'m_parentsDetails': None, 'm_parentBundlesDetails': None, 'm_bundledChildren': [], 'm_ownedBundledItems': []}, 'parent_item_reported': False}
{
  "args": {}, 
  "data": "", 
  "files": {}, 
  "form": {
    "comment": "11", 
    "count": "10", 
    "extended_data": [
      "contributors", 
      "appid", 
      "sharedfile", 
      "parent_item_reported"
    ], 
    "feature2": "-1", 
    "sessionid": "fewkofwekof4r435343g5345g"
  }, 
  "headers": {
    "Accept": "*/*", 
    "Accept-Encoding": "gzip, deflate", 
    "Content-Length": "174", 
    "Content-Type": "application/x-www-form-urlencoded", 
    "Host": "httpbin.org", 
    "User-Agent": "python-requests/2.26.0", 
    "X-Amzn-Trace-Id": "Root=1-6120b1ff-0e93a1e111bd591121ed3741"
  }, 
  "json": null, 
  "origin": "000.000.000.000", 
  "url": "https://httpbin.org/post"
}

Я пытаюсь передать "extended_data" но этот словарь передается не правильно как сделать чтобы он передался вот так: введите сюда описание изображения


Ответы (0 шт):