I am trying to get my head around type providers in F # and what they can be used for. I have the following problem:
I have a series of JSON objects in Azure Blob storage, stored as follows:
container/YYYY/MM/DD/file.json
I can easily go to a specific file on a specific date using a type provider. For example, I can access the JSON object as a string on May 5th as
type Azure = AzureTypeProvider<"ConnectionString"> let containers = Azure.Containers.``container``.``2017/``.``05/``.``05/``.``file.json``.Read()
How can I take a user input line, say, "2017-05-05" and get the corresponding JSON object with a safe type? Should I use type providers?
source share