PHP将数据列表转换为数组


PHP turn data list into an array

所以我有以下链接,其中包含大量的数据(很多)。http://www.gw2spidy.com/api/v0.9/json/all-items/all

数据是一个包含~50,000组数据的列表,以逗号分隔。
有没有办法把这5万项数据转换成数组?

这里有一项数据供参考。

{
  "data_id":2,
  "name":"Assassin Pill",
  "rarity":1,
  "restriction_level":0,
  "img":"https:'/'/render.guildwars2.com'/file'/ED903431B97968C79AEC7FB21535FC015DBB0BBA'/60981.png",
  "type_id":3,
  "sub_type_id":1,
  "price_last_changed":"2014-05-10 20:00:13 UTC",
  "max_offer_unit_price":0,
  "min_sale_unit_price":0,
  "offer_availability":0,
  "sale_availability":0,
  "sale_price_change_last_hour":0,
  "offer_price_change_last_hour":0
}

这是JSON数据,使用

$yourarray = json_decode(file_get_contents('http://www.gw2spidy.com/api/v0.9/json/all-items/all'),true);