Example #1
0
 public static JsonDiff Create(JsonNode node, JsonDiffType diffType, string msg)
 {
     return(new JsonDiff
     {
         Path = JsonPointer.Create(node),
         DiffType = diffType,
         Msg = msg,
     });
 }
Example #2
0
 public static JsonDiff Create <T>(ListTreeNode <T> node, JsonDiffType diffType, string msg)
     where T : IListTreeItem, IValue <T>
 {
     return(new JsonDiff
     {
         Path = JsonPointer.Create(node),
         DiffType = diffType,
         Msg = msg,
     });
 }
Example #3
0
 public static JsonPointer Pointer <T>(this ListTreeNode <T> self)
     where T : IListTreeItem, IValue <T>
 {
     return(JsonPointer.Create(self));
 }
Example #4
0
 public static JsonPointer Pointer(this JsonNode self)
 {
     return(JsonPointer.Create(self));
 }