Using GSON to create a session object from passed JSON. Not sure if works yet