Question: Create a Java program to read JSON from a file c: tool JSONExample . txt . Upload your Java code and the full

Create a Java program to read JSON from a file c:\tool\JSONExample.txt. Upload your Java code and the full-screen screenshots of your output to Canvas.
Hint: How to parse JSON in Java - GeeksforGeeksLinks to an external site.
JSONExample.txt
{
"semo_id": S0123456789,
"firstName": "Jane",
"lastName": "Doe",
"semester": "SP2020",
"course": {
"CS533": "Mobile Computing",
"IS360": "Mobile Application Development"
},
"approach": [
{
"type": "face-to-face",
"course": "CS533"
},
{
"type": "online",
"course": "IS360"
}
]
}
Expected output:
S0123456789
Jane
Doe
SP2020
CS533 : Mobile Computing
IS360 : Mobile Application Development
course : CS533
type : face-to-face
course : IS360
type : online
please show me how to actually setup the file in VS code and where to put the text file not just the code i keep getting errors.

Step by Step Solution

There are 3 Steps involved in it

1 Expert Approved Answer
Step: 1 Unlock blur-text-image
Question Has Been Solved by an Expert!

Get step-by-step solutions from verified subject matter experts

Step: 2 Unlock
Step: 3 Unlock

Students Have Also Explored These Related Programming Questions!