{"action":"created","issue":{"url":"https://api.github.com/repos/SwiftyJSON/SwiftyJSON/issues/519","repository_url":"https://api.github.com/repos/SwiftyJSON/SwiftyJSON","labels_url":"https://api.github.com/repos/SwiftyJSON/SwiftyJSON/issues/519/labels{/name}","comments_url":"https://api.github.com/repos/SwiftyJSON/SwiftyJSON/issues/519/comments","events_url":"https://api.github.com/repos/SwiftyJSON/SwiftyJSON/issues/519/events","html_url":"https://github.com/SwiftyJSON/SwiftyJSON/issues/519","id":157192361,"number":519,"title":"Nested JSON","user":{"login":"ddimitrov90","id":4931013,"avatar_url":"https://avatars.githubusercontent.com/u/4931013?v=3","gravatar_id":"","url":"https://api.github.com/users/ddimitrov90","html_url":"https://github.com/ddimitrov90","followers_url":"https://api.github.com/users/ddimitrov90/followers","following_url":"https://api.github.com/users/ddimitrov90/following{/other_user}","gists_url":"https://api.github.com/users/ddimitrov90/gists{/gist_id}","starred_url":"https://api.github.com/users/ddimitrov90/starred{/owner}{/repo}","subscriptions_url":"https://api.github.com/users/ddimitrov90/subscriptions","organizations_url":"https://api.github.com/users/ddimitrov90/orgs","repos_url":"https://api.github.com/users/ddimitrov90/repos","events_url":"https://api.github.com/users/ddimitrov90/events{/privacy}","received_events_url":"https://api.github.com/users/ddimitrov90/received_events","type":"User","site_admin":false},"labels":[],"state":"closed","locked":false,"assignee":null,"assignees":[],"milestone":null,"comments":1,"created_at":"2016-05-27T12:06:29Z","updated_at":"2016-11-17T07:58:32Z","closed_at":"2016-11-17T07:58:32Z","body":"I'm struggling with the following thing and still couldn't make it work. I want to have the following JSON structure:\n\n```\n{\n  \"UserId\": {\n    \"ReturnAs\": \"UserProfile\",\n    \"Expand\": {\n      \"Picture\": {\n        \"ReturnAs\": \"ProfilePicture\"\n      }\n    }\n  },\n  \"Picture\": {\n    \"ReturnAs\": \"ActivityPic\"\n  }\n}\n```\n\nwhich will be turned to a string by using the JSON.rawString function. \n\nI have tried to create the following:\n\n```\nlet structure = [ String : [ String: JSON] ] \n```\n\nand then JSON(structure) but this is not allowed.\n\nI tried \n\n```\nlet innerStructure = JSON( [ String: JSON])\nlet structure = JSON([String: innerStructure])\n```\n\nbut then i received an error that a bridge cannot be created between swift class and ObjC class\n\nAny ideas are much appreciated\n"},"comment":{"url":"https://api.github.com/repos/SwiftyJSON/SwiftyJSON/issues/comments/261179749","html_url":"https://github.com/SwiftyJSON/SwiftyJSON/issues/519#issuecomment-261179749","issue_url":"https://api.github.com/repos/SwiftyJSON/SwiftyJSON/issues/519","id":261179749,"user":{"login":"ldiqual","id":941453,"avatar_url":"https://avatars.githubusercontent.com/u/941453?v=3","gravatar_id":"","url":"https://api.github.com/users/ldiqual","html_url":"https://github.com/ldiqual","followers_url":"https://api.github.com/users/ldiqual/followers","following_url":"https://api.github.com/users/ldiqual/following{/other_user}","gists_url":"https://api.github.com/users/ldiqual/gists{/gist_id}","starred_url":"https://api.github.com/users/ldiqual/starred{/owner}{/repo}","subscriptions_url":"https://api.github.com/users/ldiqual/subscriptions","organizations_url":"https://api.github.com/users/ldiqual/orgs","repos_url":"https://api.github.com/users/ldiqual/repos","events_url":"https://api.github.com/users/ldiqual/events{/privacy}","received_events_url":"https://api.github.com/users/ldiqual/received_events","type":"User","site_admin":false},"created_at":"2016-11-17T07:58:32Z","updated_at":"2016-11-17T07:58:32Z","body":"There hasn't been much activity on this issue for a while so I'm gonna go ahead and consider it fixed. Let me know if you'd like to reopen it."}}
{"actor":{"display_login":"ldiqual"}}