Rename root node in pn.pane.JSON

This code

import panel as pn

json_viz = pn.Row(pn.pane.JSON({"a": 1, "b": {"c": 2, "d": 3}}))

produces that nice JSON visualisation widget/pane:

The question is:
How can one change the root name Object?
Also changing the Object name of b would be a nice to have.

I couldn’t figure out a way. Let me know if you do.

1 Like