So I am trying to make a program where the user would enter their information and a min of 5 and a max of 10 restaurant options in JSON format where the separate restaurants would be their own entry in a table.
UserID | Restaurant Chosen |
---|---|
1 | resta, restb, etc |
What I want is the format below but in a MySQL database
UserID | Restaurant Chosen |
---|---|
1 | RestA |
1 | Restb |
1 | Restc |
I am using python to code the API and Postman for the user to input the information in a json format, which will update the information in a MySQL database. Is what I am asking even possible? I am still learning about programming.