curlie icon indicating copy to clipboard operation
curlie copied to clipboard

HTTPie JSON array syntax doesn’t work

Open natesilva opened this issue 1 year ago • 0 comments

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"
}

natesilva avatar Mar 05 '24 00:03 natesilva