Esempio n. 1
0
 public string GetJsonString()
 {
     try
     {
         return(JsonObject.OpenBrace + _jsonSchema.GetJsonString(_values) + JsonObject.CloseBrace);
     }
     catch (UserErrorException e)
     {
         throw new UserErrorException(e.Message + $"\nInput line: {_inputLine}");
     }
 }
Esempio n. 2
0
 public string GetJsonString()
 {
     try
     {
         return(_jsonSchema.GetJsonString(_values));
     }
     catch (UserErrorException e)
     {
         throw new UserErrorException(e.Message + $"\nInput line: {_inputLine}");
     }
 }
Esempio n. 3
0
        public string GetJsonString()
        {
            var allValues = new List <string[]> {
                new [] { BaseFormatting.EmptyToDash(RefAllele) }, new [] { BaseFormatting.EmptyToDash(AltAllele) }
            };

            allValues.AddRange(_values);
            try
            {
                return(_jsonSchema.GetJsonString(allValues));
            }
            catch (UserErrorException e)
            {
                throw new UserErrorException(e.Message + $"\nInput line: {_inputLine}");
            }
        }