Move loading json to different thread