fixed json parsing from cookbook api call