I'm having an issue with an API that could return either ARRAY or OBJECT, below are the data format:
OBJECT format:
{
    "info":"no package",
    "time":"04-20-2016"
}
ARRAY format:
[
   {
      "package_id":"1234",
      "from":"CA",
      "arrive_time":"05-02-2016"
   },
   {
      "package_id":"4567",
      "from":"DE",
      "arrive_time":"05-04-2016"
   }
]
After checked some posts (Custom converter for Retrofit 2, Multiple converters with Retrofit 2), I have some clue the it should be dealed with Gson deserializer or Custom converter, but my case seems a little different. Then how to deal with it? Thanks in advance.
Update: change the example to a more proper one.