Access fetched JSON from another file

Hi there.

I am trying to fetch a JSON-File (like in the Basic JSON and HTTP usage example) in my MainView.
But i don’t want to display it in my MainView but in another UX-File.

I just want to fetch this in the MainView to be ready after startup.
How can i access a JSON from a UX file, if it was fetched by another?

You can make a js file that both ux files require. In that file you fetch the json file and cache it, then return the result through module.export on demand.