Skip to content

tavis-software/Tavis.JsonPointer

Folders and files

NameName
Last commit message
Last commit date

Latest commit

 

History

5 Commits
 
 
 
 
 
 
 
 
 
 
 
 
 
 

Repository files navigation

Tavis.JsonPointer

This library is an implementation of a Json Pointer RFC 6901 based on the Newtonsoft JSON.Net library.

With the following sample,

{
    "books": [
        {
          "title" : "The Great Gatsby",
          "author" : "F. Scott Fitzgerald"
        },
        {
          "title" : "The Grapes of Wrath",
          "author" : "John Steinbeck"
        }
    ]
}

The following code can use a Json Pointer to select a fragment of the Json document.

        var pointer = new JsonPointer("/books/1/author");
        var result = pointer.Find(sample);
        Assert.Equal("John Steinbeck", (string)result);

About

No description, website, or topics provided.

Resources

License

Stars

Watchers

Forks

Releases

No releases published

Packages

No packages published

Languages