Answered step by step
Verified Expert Solution
Question
1 Approved Answer
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
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