further work

converting json into an array, converting the resultant data into an
array and encapsulating it into a session object