example to load json and plot flux