switch from bson to json for session dumps