小编3ff*_*fff的帖子

卷曲API并从JSON获取特定字段

我正在卷曲如下

curl -X GET "https://api.mercadolibre.com/items/MLA511127356"
Run Code Online (Sandbox Code Playgroud)

响应是一个JSON,例如以下代码:

"id": "MLA511127356",
  "site_id": "MLA",
  "title": "Item De Testeo, Por Favor No Ofertar --kc:off",
  "subtitle": null,
  "seller_id": "160252486",
  "category_id": "MLA4967",
  "official_store_id": null,
  "price": 10,
  "base_price": 10,
  "original_price": null,
  "currency_id": "ARS",
  "initial_quantity": 16,
Run Code Online (Sandbox Code Playgroud)

有没有简单的方法可以做到这一点?

谢谢!

shell parsing json curl http

5
推荐指数
3
解决办法
9677
查看次数

标签 统计

curl ×1

http ×1

json ×1

parsing ×1

shell ×1