Grabbing some useful functions for result object encoding from existing core.php controller