Info
Version: | 1.0.1 |
Author(s): | Jonathan Leaver |
Last Update: | Saturday, October 21, 2017 |
.NET Fiddle: | Create the first Fiddle |
Project Url: | https://github.com/j-alexander/FSharp.Data.JsonPath |
NuGet Url: | https://www.nuget.org/packages/FSharp.Data.JsonPath |
Install
Install-Package FSharp.Data.JsonPath
dotnet add package FSharp.Data.JsonPath
paket add FSharp.Data.JsonPath
FSharp.Data.JsonPath Download (Unzip the "nupkg" after downloading)
Dependencies
- FSharp.Core(>= 4.0.0.1)
- FSharp.Data(>= 2.4.2)
Tags
In this language, interacting wit h diverse datasets from event streams, web services, and databases is further simplified with the open-source FSharp.Data library.
Many of these real-world documents are hierarchically structured in Json and Xml. When designing reusable applications and algorithms in this space, it becomes very important to be able to extract subsets of data using custom queries.
For Xml, XPATH is a well established tool for describing specific elements within a document.
A similar mechanism exists for Json, called JsonPath.
Using JsonPath with F# typically involves converting data to Newtonsoft.Json's JObject type and invoking SelectToken.
However, FSharp.Data has an elegant and functional representation of JsonValues that is very widely used.
FSharp.Data.JsonPath can directly query subsets of a JsonValue document without converting your entire dataset to perform some extraction.