Let the user enter a name for each sample, and output the data in JSON format