broken attempt to parse json returned from API