/// <summary> /// Create new JsonParser Object. /// </summary> /// <param name="filePath">The path of the file containing json object array of Choice data-type</param> /// <exception cref="FileNotFoundException">When file do not exist</exception> /// <returns>JsonParser Object</returns> public static JParser New(string filePath) { var parser = new JParser(filePath); if (!File.Exists(filePath)) { throw new FileNotFoundException($"File not found on the given path '{filePath}'"); } return(parser); }