newtonsoft deserialize json c# code example
Example 1: deserialize json to object c#
dynamic json = Newtonsoft.Json.JsonConvert.DeserializeObject(jsonstring);
Example 2: fsharp newtonsoft json deserialize
type Foo =
{ meta : Meta }
and Meta =
{ count : int }
let testjson = """{"meta": {"count": 15}}"""
open FSharp.Json
let data = Json.deserialize<Foo> testjson