{"action":"opened","issue":{"url":"https://api.github.com/repos/fsharp/FSharp.Data/issues/843","labels_url":"https://api.github.com/repos/fsharp/FSharp.Data/issues/843/labels{/name}","comments_url":"https://api.github.com/repos/fsharp/FSharp.Data/issues/843/comments","events_url":"https://api.github.com/repos/fsharp/FSharp.Data/issues/843/events","html_url":"https://github.com/fsharp/FSharp.Data/issues/843","id":86365066,"number":843,"title":"JsonProvider Error on Mono","user":{"login":"jeremyabbott","id":991806,"avatar_url":"https://avatars.githubusercontent.com/u/991806?v=3","gravatar_id":"","url":"https://api.github.com/users/jeremyabbott","html_url":"https://github.com/jeremyabbott","followers_url":"https://api.github.com/users/jeremyabbott/followers","following_url":"https://api.github.com/users/jeremyabbott/following{/other_user}","gists_url":"https://api.github.com/users/jeremyabbott/gists{/gist_id}","starred_url":"https://api.github.com/users/jeremyabbott/starred{/owner}{/repo}","subscriptions_url":"https://api.github.com/users/jeremyabbott/subscriptions","organizations_url":"https://api.github.com/users/jeremyabbott/orgs","repos_url":"https://api.github.com/users/jeremyabbott/repos","events_url":"https://api.github.com/users/jeremyabbott/events{/privacy}","received_events_url":"https://api.github.com/users/jeremyabbott/received_events","type":"User","site_admin":false},"labels":[],"state":"open","locked":false,"assignee":null,"milestone":null,"comments":0,"created_at":"2015-06-08T23:08:28Z","updated_at":"2015-06-08T23:08:28Z","closed_at":null,"body":"When passing a URL to JsonProvider as a JSON sample I receive the following error: \"Error FS3033: The type provider 'ProviderImplementation.JsonProvider' reported an error: Object reference not set to an instance of an object\"\r\n\r\nFor example, this bombs: \r\n\r\n```fsharp\r\ntype Issue = JsonProvider<\"https://api.github.com/repos/fsharp/FSharp.Data/issues\">\r\n```\r\n\r\nHowever, this is acceptable:\r\n\r\n```fsharp\r\ntype Simple = JsonProvider<\"\"\" { \"name\":\"John\", \"age\":94 } \"\"\">\r\n```\r\n\r\nThe issue only appears to happen on Mono (version 4.0.1). I'm happy to help provide a fix with some guidance."}}