Example #1
0
        public string GetPrePath()
        {
            var builder = new JsonPathBuilder(this.ToString());

            builder.Segments[1].Index = builder.Segments[1].Index - 1;
            return(builder.ToString());
        }
Example #2
0
 public string Resolve()
 {
     try
     {
         jsonBuilder = new JsonPathBuilder();
         InternalResolve(jsonObjectConfig);
         return(JsonConvert.SerializeObject(newJsonObjectConfig, Formatting.Indented));
     }
     catch (Exception ex)
     {
         logger.Error(ex, "The json structur could not resolve.");
         return(null);
     }
 }