Maybe we should move the JSON.parse into the UI controller instead, so we don't unnecessarily encode to and from JSON in this controller and the rake task (lib/tasks/puppet.rake).