func (s *Session) MarshalJSON() ([]byte, error) {
	user := s.User
	if user == nil {
		user = &authdb.UserContext{}
	}
	result := map[string]interface{}{
		"info": map[string]interface{}{
			"authenticated":           s.AuthMethod,
			"authentication_db":       s.AuthDB,
			"authentication_handlers": s.Handlers,
		},
		"ok":      true,
		"userCtx": user,
	}
	return json.Marshal(result)
}
// MarshalJSON satisfies the json.Marshaler interface.
MarshalJSON satisfies the json.Marshaler interface.
// MarshalJSON satisfies the json . Marshaler interface .
func (s *Session) MarshalJSON() ([]byte, error) {
	user := s.User
	if user == nil {
		user = &authdb.UserContext{}
	}
	result := map[string]interface{}{
		"info": map[string]interface{}{
			"authenticated":           s.AuthMethod,
			"authentication_db":       s.AuthDB,
			"authentication_handlers": s.Handlers,
		},
		"ok":      true,
		"userCtx": user,
	}
	return json.Marshal(result)
}
func ( s * Session ) MarshalJSON ( ) ( [ ] byte , error ) { user := s . User if user == nil { user = & authdb . UserContext { } } result := map [ string ] interface { } { " " : map [ string ] interface { } { " " : s . AuthMethod , " " : s . AuthDB , " " : s . Handlers , } , " " : true , " " : user , } return json . Marshal ( result ) }
MarshalJSON satisfies the json.Marshaler interface.
MarshalJSON satisfies the json . Marshaler interface .