Default deserialization

Report a typo

Use Gson's default deserialization to convert the JSON string into an instance of the PerfectPizza class.
Tip: Use the gson object provided.

Gson gson = new Gson();
String perfectPizzaJson = "{\"crust\": \"crispy\", 
\"toppings\": \"everything\", \"meat_amount\": \"a lot\"}";
PerfectPizza aPerfectPizza = _________________;    // Fill in this blank
Enter a short text
___

Create a free account to access the full topic