{"action":"created","issue":{"url":"https://api.github.com/repos/RehanSaeed/Schema.NET/issues/2","repository_url":"https://api.github.com/repos/RehanSaeed/Schema.NET","labels_url":"https://api.github.com/repos/RehanSaeed/Schema.NET/issues/2/labels{/name}","comments_url":"https://api.github.com/repos/RehanSaeed/Schema.NET/issues/2/comments","events_url":"https://api.github.com/repos/RehanSaeed/Schema.NET/issues/2/events","html_url":"https://github.com/RehanSaeed/Schema.NET/issues/2","id":248205915,"number":2,"title":"Using Schema.NET in ASP.NET Core controllers in model binding","user":{"login":"veikkoeeva","id":5158694,"avatar_url":"https://avatars3.githubusercontent.com/u/5158694?v=4","gravatar_id":"","url":"https://api.github.com/users/veikkoeeva","html_url":"https://github.com/veikkoeeva","followers_url":"https://api.github.com/users/veikkoeeva/followers","following_url":"https://api.github.com/users/veikkoeeva/following{/other_user}","gists_url":"https://api.github.com/users/veikkoeeva/gists{/gist_id}","starred_url":"https://api.github.com/users/veikkoeeva/starred{/owner}{/repo}","subscriptions_url":"https://api.github.com/users/veikkoeeva/subscriptions","organizations_url":"https://api.github.com/users/veikkoeeva/orgs","repos_url":"https://api.github.com/users/veikkoeeva/repos","events_url":"https://api.github.com/users/veikkoeeva/events{/privacy}","received_events_url":"https://api.github.com/users/veikkoeeva/received_events","type":"User","site_admin":false},"labels":[{"id":621482329,"url":"https://api.github.com/repos/RehanSaeed/Schema.NET/labels/enhancement","name":"enhancement","color":"84b6eb","default":true}],"state":"open","locked":false,"assignee":null,"assignees":[],"milestone":null,"comments":6,"created_at":"2017-08-05T19:56:20Z","updated_at":"2017-08-08T11:19:58Z","closed_at":null,"body":"Hi!\r\n\r\nI was wondering if you would have advice on how to use this interesting library in ASP.NET Core controllers so that roughly the following would work:\r\n\r\n```\r\n[HttpPost(\"[action]\")]\r\npublic IActionResult Test([FromBody] Thing thing)\r\n{\r\n    var e = (Person)thing;\r\n    return Accepted(new Uri(\"https://wwww.WhereToAskForResults.com\"));\r\n}\r\n```\r\nThat is, accept JSON-LD data via a base classes. Or put other way, if I have a JSON document, say like at https://jsonld.com/person/, how could it be deserialized to a .NET object of Person."},"comment":{"url":"https://api.github.com/repos/RehanSaeed/Schema.NET/issues/comments/320926574","html_url":"https://github.com/RehanSaeed/Schema.NET/issues/2#issuecomment-320926574","issue_url":"https://api.github.com/repos/RehanSaeed/Schema.NET/issues/2","id":320926574,"user":{"login":"RehanSaeed","id":2270364,"avatar_url":"https://avatars2.githubusercontent.com/u/2270364?v=4","gravatar_id":"","url":"https://api.github.com/users/RehanSaeed","html_url":"https://github.com/RehanSaeed","followers_url":"https://api.github.com/users/RehanSaeed/followers","following_url":"https://api.github.com/users/RehanSaeed/following{/other_user}","gists_url":"https://api.github.com/users/RehanSaeed/gists{/gist_id}","starred_url":"https://api.github.com/users/RehanSaeed/starred{/owner}{/repo}","subscriptions_url":"https://api.github.com/users/RehanSaeed/subscriptions","organizations_url":"https://api.github.com/users/RehanSaeed/orgs","repos_url":"https://api.github.com/users/RehanSaeed/repos","events_url":"https://api.github.com/users/RehanSaeed/events{/privacy}","received_events_url":"https://api.github.com/users/RehanSaeed/received_events","type":"User","site_admin":false},"created_at":"2017-08-08T11:19:58Z","updated_at":"2017-08-08T11:19:58Z","body":"Just to follow up, there are two scenarios here. One where you don't know what .NET type to deserialize to and one where you do. My message above caters to the first scenario."}}
{"actor":{"display_login":"RehanSaeed"}}