I have an interesting problem using the F# Type Provider. Using the following sample json to generate the required type works beautifully but with one glaring issue - one of the values is a literal string ("235") but that string does not occur in the real data - each new record has a different three-digit number:
{
"record": {
"235": {
"Id": "001",
"Name": "A. N. Other",
"IdDatetime": "2017-11-11T13:10:00+00:00"
...
}
"255": {
"Id": "005",
"Name": "D. Other",
"IdDatetime": "2017-11-11T13:10:00+00:00"
...
}
}
So, unfortunately, I cannot access the Id, Name, and IdDateTime fields without knowing the three-digit code in advance!
Any advice?