curlie
curlie copied to clipboard
HTTPie JSON array syntax doesn’t work
With HTTPie and xh, I can pass in a JSON item as an array:
xh -v httpbin.org/post tables[]=users
# or
http -v httpbin.org/post tables[]=users
This sends a JSON object:
{
"tables": [
"users"
]
}
This syntax doesn’t work in curlie. It sends this instead:
{
"tables[]": "users"
}