Plotly.io.to_json() in clientside callback

A minimum-reproducible-example:

It helps with troubleshooting