Can JsonProvider deserialise to a Generic.Dictionary?
问题 I'm learning about type providers and it looks like a ground breaking feature. However, I can't manage to deserialise json with JsonProvider so that the target type has a Generic.Dictionary property. It can be done with Json.NET. Here is the code: type ByProv = JsonProvider<"""{"dict":{"A":1,"B":2}}"""> type ByHand(d:Dictionary<string,int>) = member val dict = d with get,set let text = """{"dict":{"C":3,"D":4}}""" let newt = JsonConvert.DeserializeObject<ByHand> text let prov = ByProv.Parse