//Load Json Data and stores it //Create a Dictionary from Json public void LoadJson() { if (file_path != null) { Debug.Log("Loading Json Data..."); var json = File.ReadAllText(file_path); subreddit = Subreddit.FromJson(json); if (subreddit != null) { UserInterface.GetComponent <UserInterfaceManager>().Loaded(); Debug.Log("Loading Data Success!"); } else { Debug.Log("Unable to load json data with given path!"); } } else { Debug.Log("Unable to load json data with given path!"); } }