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

same here, no need to do `case` and specify the type