Embedding: Exporting "all_models" data to json?

I’d like to embed a Bokeh plot into a web page that can load different datasets from a webserver.

I know that in python I can export a big chunk of javascript which make a Bokeh plot in a web page, but is there an easy way to isolate the json data, (the “all_models” variable)? I’d like to just send that over the network and then open it using the Bokeh.load_models function in the browser.

Thanks!