As with anything that outputs its result directly to the browser, you can use the output-control functions to capture the output of this function, and save it in a string (for example).
This function returns structured information about an expression that includes its type and value. Arrays are explored recursively with values indented to show structure.