Answered step by step
Verified Expert Solution
Question
1 Approved Answer
Given this dataset, transform it into other file formats: Part 1 - File Creation You are going to turn the data above into the following
Given this dataset, transform it into other file formats: Part 1 - File Creation You are going to turn the data above into the following formats: - JSON - XML - CSV For grading, here is how you will format each file type: - for all (in practical situations the order of these fields wouldn't matter, nesting would) the fields for each record should be lowercase e.g., and not the order of the fields should be: name , id then - records should be sorted by id from least to greatest Specific file formats: - for JSON - all the records should be stored in an array each record is a JSON object name is a string id \& gpa are numbers - for XML - the parent element should be called each record called each trait ( name, id \& gpa ) should be its own tag (e.g., you should include an XML header at the beginning of the file - version; 1.0 - encoding; - for CSV o the header should be copied from the table above the delimiter should be a comma Part 2 - Content Distribution In this part, you're going to implement a function which will serve as an endpoint for each file format. There is already a premade function within the file for easily reading a file. It is recommended to use this, however you are allowed to implement your own if you so choose. Your job will be to: 1. make three functions 2. use the proper MIME type for the decorator you can use to verify that the CSV endpoint works, but you are supposed to use the correct MIME type for this lab and in practice 3. assign an endpoint for each file format (e.g., should serve the file) the endpoint must be the lowercase of the file format The default entry point to this application is
Step by Step Solution
There are 3 Steps involved in it
Step: 1
Get Instant Access to Expert-Tailored Solutions
See step-by-step solutions with expert insights and AI powered tools for academic success
Step: 2
Step: 3
Ace Your Homework with AI
Get the answers you need in no time with our AI-driven, step-by-step assistance
Get Started