Make the session data was a json object

Modify the session data from a string to a object.