Question: Make a call to your API in a web browser or using a tool like curl from the command line. Copy the JSON that is

Make a call to your API in a web browser or using a tool like curl from the command line.
Copy the JSON that is returned from your API call.
Create a Java program that shows me that you are able to parse this JSON into Java objects using GSON.
Store your returned web API data in a String variable.
Import the GSON library
Make sure that you put copies of your class files used to hold the JSON data in the same folder as the test program. This should include the full hierarchy used in your JavaFX program.
Use GSON to initialize a single Java object from the JSON string. You don't even have to print it, I'll use the debugger to validate the object.
That's it! Make sure this compiles and runs and then zip the entire folder and submit it to me.

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 Databases Questions!