We read every piece of feedback, and take your input very seriously.
To see all available qualifiers, see our documentation.
Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.
By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.
Already on GitHub? Sign in to your account
Let's say an API takes several values, like in this example call:
{ "name": "Fred", "age", 27, "pets" : { "penguins": 2, "dogs":1 } }
I can reference name and age easily:
$> http PUT https://www.example.com/users/1 name=Phil age=25
But editing pets is uglier:
$> http PUT https://www.example.com/users/1 pets:='{"penguins":2, "dogs":1}'
I'd like to do something like one of these:
$> http PUT https://www.example.com/users/1 pets.penguins=2 pets.dogs=1 $> http PUT https://www.example.com/users/1 pets="penguins=2 dogs=1" $> http PUT https://www.example.com/users/1 pets\penguins=2 pets\dogs=1
That said, "." and "" could conceivably be part of a JSON key, so maybe that's not actually a good idea?
The text was updated successfully, but these errors were encountered:
Maybe have a look at JSONPath (http://goessner.net/articles/JsonPath/) for syntax inspiration.
Sorry, something went wrong.
Duplicate of #78
Closing this in favor of #78
🎉 This feature is now publicly available in HTTPie for Terminal 3.0:
👉🏻 https://httpie.io/docs/cli/nested-json
No branches or pull requests
Let's say an API takes several values, like in this example call:
I can reference name and age easily:
But editing pets is uglier:
I'd like to do something like one of these:
That said, "." and "" could conceivably be part of a JSON key, so maybe that's not actually a good idea?
The text was updated successfully, but these errors were encountered: