Corona gmail login json

I got little problem. I’m trying to make app with Corona SDK, where you can login with gmail. I found a code/library called googleLogin, i got it working but there’s one more problem i need to solve, which i haven’t been able to solve and i’m totally stuck.

What does this code do? 
* once you login with gmail, it will post some profile info about your gmail to front screen Screenshot .

What’s is my problem?
* I can’t get name or gmail out of this line of text I get from the response. I tried json.decode and other ways but I am not able to get it out

 

 

LINK to github with APK inside. https://github.com/matukaz/TestGmail

Oeh nub mistake, 

Forgot to import json library. Topic can be closed.

local json = require "json" local answer = json.decode(event.response) local options = { --parent = textGroup, text = answer.name, x = display.actualContentWidth/2, y = 200, width = display.actualContentWidth-100, --required for multi-line and alignment font = native.systemFontBold, fontSize = 10, align = "left" --new alignment parameter } gmailtext = display.newText( options ) gmailtext:setFillColor( 1, 0, 0 )

Oeh nub mistake, 

Forgot to import json library. Topic can be closed.

local json = require "json" local answer = json.decode(event.response) local options = { --parent = textGroup, text = answer.name, x = display.actualContentWidth/2, y = 200, width = display.actualContentWidth-100, --required for multi-line and alignment font = native.systemFontBold, fontSize = 10, align = "left" --new alignment parameter } gmailtext = display.newText( options ) gmailtext:setFillColor( 1, 0, 0 )