6
5

Delete article

Deleted articles cannot be recovered.

Draft of this article would be also deleted.

Are you sure you want to delete this article?

More than 5 years have passed since last update.

httpieで入れ子(ネスト)されたJSONをPOSTする方法

Last updated at Posted at 2016-10-21

方法

http post URL Key:='{"key1":"value1", "key2":"value2"}'

以下のようなJSONを送るとする。

{
 "Id": "1",
 "json-nest": {
       "name": "N.W.A",
       "from": "Compton"
       }
}

この時は以下のように記述する。

http post http://... Id=1 json-nest:='{"name":"N.W.A","from":"Compton"}'

--- #### 参考文献 http://qiita.com/yasuno0327/items/b11c2fcefd6b263ab337 https://github.com/jkbrzt/httpie/issues/78
6
5
0

Register as a new user and use Qiita more conveniently

  1. You get articles that match your needs
  2. You can efficiently read back useful information
  3. You can use dark theme
What you can do with signing up
6
5

Delete article

Deleted articles cannot be recovered.

Draft of this article would be also deleted.

Are you sure you want to delete this article?