Retrieve samples in the JSON format from pinery and convert them to case classes.