Trying to parse a simple json string with the FSharp.Data.Json library and am faced with the following error. I am using F# 2.0 interactive. Any thoughts on how to go about solving the error
JsonValue.Parse(@"{""id"": ""117sds""}");;
System.MissingMethodException: Method not found: '!!0 Microsoft.FSharp.Collections.SeqModule.ExactlyOne(System.Collections.Generic.IEnumerable1<!!0>)'.
1 culture)
at FSharp.Data.Json.JsonParser..ctor(String jsonText, FSharpOption
at FSharp.Data.Json.JsonValue.Parse(String text, FSharpOption`1 culture) in C:\Tomas\Projects\FSharp.Data\src\Library\Json.fs:line 215
at .$FSI_0063.main@()
As Jack pointed out, the F# Data library really only works with F# 3.0. If you can update the F# version, it will work and you'll get other benefits (like type providers).
If you cannot upgrade then you can probably just copy the file with JSON parser and runtime to your project and change a few things to support F# 2.0 (the licence allows that). The file you need is Json.fs.
I don't think we'd want to support 2.0 version (so far), but if the fix is easy, submit a pull request with the change and we can merge that to make this easier for others.