added capability to return JSON obj from formula