how to mate a spring to a hanger bolt

In an assembly, I want to hang a platform from posts via springs. How does one mate the spring to the hanger bolt?