{"action":"created","issue":{"url":"https://api.github.com/repos/Starcounter/Starcounter/issues/237","labels_url":"https://api.github.com/repos/Starcounter/Starcounter/issues/237/labels{/name}","comments_url":"https://api.github.com/repos/Starcounter/Starcounter/issues/237/comments","events_url":"https://api.github.com/repos/Starcounter/Starcounter/issues/237/events","html_url":"https://github.com/Starcounter/Starcounter/issues/237","id":13524216,"number":237,"title":"JSON primitive arrays not supported in XSON","user":{"login":"per-samuelsson","id":2902045,"avatar_url":"https://avatars.githubusercontent.com/u/2902045?v=3","gravatar_id":"","url":"https://api.github.com/users/per-samuelsson","html_url":"https://github.com/per-samuelsson","followers_url":"https://api.github.com/users/per-samuelsson/followers","following_url":"https://api.github.com/users/per-samuelsson/following{/other_user}","gists_url":"https://api.github.com/users/per-samuelsson/gists{/gist_id}","starred_url":"https://api.github.com/users/per-samuelsson/starred{/owner}{/repo}","subscriptions_url":"https://api.github.com/users/per-samuelsson/subscriptions","organizations_url":"https://api.github.com/users/per-samuelsson/orgs","repos_url":"https://api.github.com/users/per-samuelsson/repos","events_url":"https://api.github.com/users/per-samuelsson/events{/privacy}","received_events_url":"https://api.github.com/users/per-samuelsson/received_events","type":"User","site_admin":false},"labels":[{"url":"https://api.github.com/repos/Starcounter/Starcounter/labels/.NET","name":".NET","color":"000000"},{"url":"https://api.github.com/repos/Starcounter/Starcounter/labels/enhancement","name":"enhancement","color":"84b6eb"},{"url":"https://api.github.com/repos/Starcounter/Starcounter/labels/guess:%20todo","name":"guess: todo","color":"c7def8"},{"url":"https://api.github.com/repos/Starcounter/Starcounter/labels/Typed%20JSON","name":"Typed JSON","color":"006b75"}],"state":"open","locked":false,"assignee":{"login":"chrhol","id":1658979,"avatar_url":"https://avatars.githubusercontent.com/u/1658979?v=3","gravatar_id":"","url":"https://api.github.com/users/chrhol","html_url":"https://github.com/chrhol","followers_url":"https://api.github.com/users/chrhol/followers","following_url":"https://api.github.com/users/chrhol/following{/other_user}","gists_url":"https://api.github.com/users/chrhol/gists{/gist_id}","starred_url":"https://api.github.com/users/chrhol/starred{/owner}{/repo}","subscriptions_url":"https://api.github.com/users/chrhol/subscriptions","organizations_url":"https://api.github.com/users/chrhol/orgs","repos_url":"https://api.github.com/users/chrhol/repos","events_url":"https://api.github.com/users/chrhol/events{/privacy}","received_events_url":"https://api.github.com/users/chrhol/received_events","type":"User","site_admin":false},"milestone":{"url":"https://api.github.com/repos/Starcounter/Starcounter/milestones/51","html_url":"https://github.com/Starcounter/Starcounter/milestones/v2.0","labels_url":"https://api.github.com/repos/Starcounter/Starcounter/milestones/51/labels","id":602455,"number":51,"title":"v2.0","description":"","creator":{"login":"Starcounter-Jack","id":1219049,"avatar_url":"https://avatars.githubusercontent.com/u/1219049?v=3","gravatar_id":"","url":"https://api.github.com/users/Starcounter-Jack","html_url":"https://github.com/Starcounter-Jack","followers_url":"https://api.github.com/users/Starcounter-Jack/followers","following_url":"https://api.github.com/users/Starcounter-Jack/following{/other_user}","gists_url":"https://api.github.com/users/Starcounter-Jack/gists{/gist_id}","starred_url":"https://api.github.com/users/Starcounter-Jack/starred{/owner}{/repo}","subscriptions_url":"https://api.github.com/users/Starcounter-Jack/subscriptions","organizations_url":"https://api.github.com/users/Starcounter-Jack/orgs","repos_url":"https://api.github.com/users/Starcounter-Jack/repos","events_url":"https://api.github.com/users/Starcounter-Jack/events{/privacy}","received_events_url":"https://api.github.com/users/Starcounter-Jack/received_events","type":"User","site_admin":false},"open_issues":350,"closed_issues":380,"state":"open","created_at":"2014-03-19T09:04:00Z","updated_at":"2015-07-01T22:53:46Z","due_on":null,"closed_at":null},"comments":11,"created_at":"2013-04-23T08:31:52Z","updated_at":"2015-07-01T22:54:49Z","closed_at":null,"body":"When I make a JSON model with a primitive array, using the XSON.Json class as my code baseclass, I get a compile-time error like\r\n\r\n> Unable to cast object of type\r\n> 'Starcounter.Templates.TArr`2[Starcounter.Json,Starcounter.Templates.TJson]' to type\r\n> 'Starcounter.Templates.TJson'.\r\n\r\nSample JSON to reproduce:\r\n\r\n```\r\n{\r\n    \"Foo\": [\r\n        \"Bar\",\r\n        \"Baz\"\r\n    ]\r\n}\r\n```\r\n\r\nApparently, this is because we don't yet support arrays with primitives, only objects. This must be addressed."},"comment":{"url":"https://api.github.com/repos/Starcounter/Starcounter/issues/comments/117845139","html_url":"https://github.com/Starcounter/Starcounter/issues/237#issuecomment-117845139","issue_url":"https://api.github.com/repos/Starcounter/Starcounter/issues/237","id":117845139,"user":{"login":"Starcounter-Jack","id":1219049,"avatar_url":"https://avatars.githubusercontent.com/u/1219049?v=3","gravatar_id":"","url":"https://api.github.com/users/Starcounter-Jack","html_url":"https://github.com/Starcounter-Jack","followers_url":"https://api.github.com/users/Starcounter-Jack/followers","following_url":"https://api.github.com/users/Starcounter-Jack/following{/other_user}","gists_url":"https://api.github.com/users/Starcounter-Jack/gists{/gist_id}","starred_url":"https://api.github.com/users/Starcounter-Jack/starred{/owner}{/repo}","subscriptions_url":"https://api.github.com/users/Starcounter-Jack/subscriptions","organizations_url":"https://api.github.com/users/Starcounter-Jack/orgs","repos_url":"https://api.github.com/users/Starcounter-Jack/repos","events_url":"https://api.github.com/users/Starcounter-Jack/events{/privacy}","received_events_url":"https://api.github.com/users/Starcounter-Jack/received_events","type":"User","site_admin":false},"created_at":"2015-07-01T22:54:49Z","updated_at":"2015-07-01T22:54:49Z","body":"@chrhol WDYT?"}}