Skip to content
JsonPath for F# Data
F# PowerShell
Branch: master
Clone or download
Fetching latest commit…
Cannot retrieve the latest commit at this time.
Permalink
Type Name Latest commit message Commit time
Failed to load latest commit information.
.paket
FSharp.Data.JsonPath.Tests
FSharp.Data.JsonPath
.gitignore
.travis.yml
FSharp.Data.JsonPath.sln
LICENSE.md
Pack.ps1
README.md
paket.dependencies
paket.lock

README.md

Build/Test Status

  • .NET Appveyor
  • mono Travis

Installation

  • NuGet NuGet
    • Using the Package Manager Console:

       PM> Install-Package FSharp.Data.JsonPath
      
    • Using paket:

       >./.paket/paket.exe add nuget FSharp.Data.JsonPath project MyProject
      

Overview

F# has been characterized as a modern programming language well-suited to data-rich analytical problems. In this language, interacting with 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.

References

You can’t perform that action at this time.