[SPARK-3454] Expose JSON representation of data shown in WebU

here and other places