I know exactly what the problem is. My attempts to solve it have been futile.
Here's the problem in the json input:
As you can see, the item option_value is sometimes an array and sometimes it's just a simple string. My parser however, treats it as an array because that's how I've defined it:
....
public class Options
{
String product_option_id;
String option_id;
String name;
String type;
String required;
List<OptionValue> option_value;
....
....
public class OptionValue
{
String product_option_value_id;
String option_value_id;
String name;
String image;
String price;
String price_prefix;
....
How do I modify my class so that it is able to check if option_value is an array or simply a string and is treated as such?