Missing 'function' keyword for processFieldAsJson helper method