Use a struct to unmarshal api.json
Now doc.json unmarshals into it's own struct