Cleaning up, JSON utility.
Controller methods.