Start of JSON suport for cards (NOTE still uses hard coded values)