问:是否可以通过 GET 请求发送 json 数据?
我想传递一些过滤器参数来从数据库读取结果
params = {'is_coming_soon': False, 'is_paid': True, 'limit': 100, 'skip': 0}
headers = {'content-type': 'application/json'}
response = requests.get(url=url, headers=headers, params=params)
Run Code Online (Sandbox Code Playgroud)
在服务器端,我以字符串的形式接收所有值,
我怎样才能请求获得正确的布尔值而不是字符串一。