title: how to retrieve values from JSON object and authenticate using google-plus:0.1 plugin
body: <p>I am using google-plus:0.1 plugin in a Grails Application to enable login using Google+ ,I have successfully logged in and I am getting JSON object back.</p>
  
  <p>Inside plugin there is a code where they are turning JSON string to JSON object and returning back to me.
  This is the code inside a plugin:-</p>
  
  <pre><code>public Person getCurrentUserProfile() {
      Person person
      try {
          URL url = new URL("https://www.googleapis.com/plus/v1/people/me?access_token=${this.accessToken}")
          def jsonString = JSON.parse(url?.text)
          println "URL : " + url.toString()
          println "JSON : " + jsonString
  
          person = Person.parseJSONForPerson(jsonString)
      } catch (GooglePlusException e) {
          e.printStackTrace()
      }
      return person
  }
  </code></pre>
  
  <p>From here I am getting JSON object back
  Json string printed in console is:-</p>
  
  <pre><code>URL : https://www.googleapis.com/plus/v1/people/me?access_token=ya29.lgFPSagK5lQ8l19hWuxra8AxsXzZjxlbCetP-aWpUHbq2_djrdvj-3XMFMEgl9r4WfaiLvo7Q3RfJQ
  JSON : [etag:"RqKWnRU4WW46-6W3rWhLR9iFZQM/eUT2aym4R39YBu_ra8ZlhztXJ6w", organizations:[[startDate:1995, title:Science, primary:false, name:St.Joseph's Convent, endDate:2008, type:school]], image:[isDefault:false, url:https://lh5.googleusercontent.com/-kuh1_bl_8is/AAAAAAAAAAI/AAAAAAAAADA/ZZfY8ob2QrQ/photo.jpg?sz=50], isPlusUser:true, emails:[[value:kartiki.sahu@crowdera.co, type:account]], kind:plus#person, url:https://plus.google.com/102332421579091283598, id:102332421579091283598, verified:false, name:[familyName:Sahu, givenName:Kartiki], domain:crowdera.co, circledByCount:9, gender:female, displayName:Kartiki Sahu, objectType:person]
  </code></pre>
  
  <p>I am unable to fetch emails from the object which I am getting.</p>
  
  <p>I tried fetching familyName as 
  person.name.familyName I got it's value, 
  but for givenName it is showing null and for emails and organisation it is showiing empty list like [].</p>
  
  <p>My code :-</p>
  
  <pre><code>def code = request.getParameter("code")
      String accessToken = accessTokenService.generateAccessToken(code)
      googlePlusService.accessToken = accessToken
      def person = googlePlusService.getCurrentUserProfile()
  </code></pre>
  
  <p>Please help.</p>