pub fn json_to_deck_hashmap(
    sets: Vec<&str>
) -> Result<HashMap<usize, Card>, String>
Expand description

Takes in a vector of JSON formatted &str and attempts to coerce them into CardSetJson, the JSON should take the form mentioned here or:

{
 "card_set": {
   "version": 1,
 "set_info": {
  "set_id": 0,
   "pack_item_def": 0,
    "name": {
       "english": "Base Set"
     }
   },
  "card_list": [{

  "card_id": 4000,
  "base_card_id": 4000,
   "card_type": "Hero",
  "card_name": {
    "english": "Farvhan the Dreamer"
 },
  "card_text": {
     "english": "Pack Leadership<BR>\nFarvhan the Dreamer's allied neighbors have +1 Armor."
   },
    "mini_image": {
      "default": "<url to png>"
    },
   "large_image": {
      "default": "<url to png>"
     },
    "ingame_image": {
      "default": "<url to png>"
   },
   "is_green": true,
   "attack": 4,
   "hit_points": 10,
     "references": [{
     "card_id": 4002,
       "ref_type": "includes",
         "count": 3
 },
       {
       "card_id": 4001,
     "ref_type": "passive_ability"
       }
   ]


   },
   ..... more cards ....

   ]
 }
}