Extracted the finding of a Json file into a separate method. This can
now be used by the Download endpoint to access timeseries.