title: How to parse JsonPrimitive
body: <p>I have the following json which i need to parse:</p>
  
  <pre><code>{
   "resource1": {
    "fare": 7511,
    "typeoftravel": "domestic",
    "vertical": "flight",
    "extra": "[{'duration': u'3h 0m', 'arrtime': u'2015-05-05t1930', 'nostops': 0, 'deptime': u'2015-05-05t1630', 'flightno': u'6E478'}]",
    "roundtrip": "O",
    "destination": "BLR",
    "returndate": 0,
    "lastupdated": "2015-03-29T10:40:12",
    "source": "IXC",
    "carrier": "IndiGo",
    "date": 20150505,
    "class": "E"
   },
   "resource2": {
    "fare": 6320,
    "typeoftravel": "domestic",
    "vertical": "flight",
    "extra": "[{'duration': u'4h 25m', 'arrtime': u'2015-05-06t2210', 'nostops': 0, 'deptime': u'2015-05-06t1745', 'flightno': u'9W7076'}]",
    "roundtrip": "O",
    "destination": "BLR",
    "returndate": 0,
    "lastupdated": "2015-03-29T17:08:09",
    "source": "IXC",
    "carrier": "Jet Airways",
    "date": 20150506,
    "class": "E"
   }
  }
  </code></pre>
  
  <p>I am not able to determine what kind of field "extra" is. It's not a jsonObject or jsonArray. I am able to cast it to jsonPrimitive but now how do i parse this. I am using Gson for parsing.</p>