title: How to parse Json array of different objects with Gson?
body: <p>Json string:</p>
  
  <pre><code>  [  
         //Object 1
  
         {  
            TypeName:"CheckSpecificDday",
            SpecificDay:"20160413",
            Lunar:1
         },
  
         {  
            TypeName:"CheckSpecificDday",
            SpecificDay:"20160414",
            Lunar:1
         },
  
         //Object 2
  
         {  
            TypeName:"CheckEveryDayDday",
            StartDate:"20160413",
            EndDate:"20260417",
            Interval:1,
            StartOption:"D",
            HolidayCondition:1
         },
  
         //Object 3
  
         {  
            TypeName:"CheckEveryDdayOfWeek",
            StartDate:"20160413",
            EndDate:"",
            Interval:1,
            SpecificDayOfWeek:"3",
            HolidayCondition:1
         },
  
         //Object 4
  
         {  
            TypeName:"CheckEveryMonthSpecificDday",
            StartDate:"20160413",
            EndDate:"",
            Interval:1,
            SpecificDD:"13,14",
            HolidayCondition:1
         },
  
         //Object 5
  
         {  
            TypeName:"CheckEveryYearWeek",
            StartDate:"20160413",
            EndDate:"",
            Interval:1,
            SpecificMMnthWeek:"0433",
            HolidayCondition:1
         }
  
      ]
  </code></pre>
  
  <p>I have a Json array like the above. What I want is to parse it to different object types with Gson (as I commented to make it clearer), but I dont know how to do that. Please help me. Thank you in advance!</p>