public void GetJSONAllOptionalValuesFromExamplesFile(string fileContent, Dictionary <Tuple <string, string>, List <string> > optionalValuesPerParameterDict) { JsonExtended JE = new JsonExtended(fileContent); foreach (JsonExtended JTN in JE.GetEndingNodes()) { try { AddJSONValueToOptionalValuesPerParameterDict(optionalValuesPerParameterDict, JTN.GetToken()); } catch (Exception ex) { Reporter.ToLog(eLogLevel.ERROR, ex.StackTrace); } } }
private void GetJSONAllOptionalValuesFromExamplesFile(TemplateFile xMLTemplateFile, Dictionary <Tuple <string, string>, List <string> > optionalValuesPerParameterDict) { string FileContent = File.ReadAllText(xMLTemplateFile.FilePath); JsonExtended JE = new JsonExtended(FileContent); foreach (JsonExtended JTN in JE.GetEndingNodes()) { try { AddJSONValueToOptionalValuesPerParameterDict(optionalValuesPerParameterDict, JTN.GetToken()); } catch { } } }