Replies: 1 comment
|
I'd suggest the following... filter = {"op":"eq", "value":"true"}
params = {"filter[leaf]": json.dumps(filter)} |
0 replies
Sign up for free
to join this conversation on GitHub.
Already have an account?
Sign in to comment
Uh oh!
There was an error while loading. Please reload this page.
Hello,
I have the following request:
When I look at the URL, I get this:
/my/url?filter%5Bleaf%5D=%7B%27op%27%3A+%27eq%27%2C+%27value%27%3A+%27true%27%7DWhich decodes to this:
/my/url?filter[leaf]={'op':+'eq',+'value':+'true'}Now the params in the URL are enclosed in single quotes and not in double quotes, which leads to an error in the API server:
JSONDecodeError: Expecting property name enclosed in double quotesAny hints on how to get httpx to encode the params with double quotes?
All reactions