I have a few helpful functions I want to use in my controller but I don't know where to put them. For instance I have a method to form a JSON structure which I need to use a few times.
I would probably end up putting it in some form of utilities class which would contain a bunch of useful functions. Is this the correct way to go about it?