Skip to content

Instantly share code, notes, and snippets.

@initFabian
Created June 7, 2016 02:24
Show Gist options
  • Star 0 You must be signed in to star a gist
  • Fork 0 You must be signed in to fork a gist
  • Save initFabian/569d0c381172598e8d40230a8c78be01 to your computer and use it in GitHub Desktop.
Save initFabian/569d0c381172598e8d40230a8c78be01 to your computer and use it in GitHub Desktop.
typealias nested1Dictionary = [ String : AnyObject ]
typealias nested2Dictionary = [ String : nested1Dictionary ]
typealias nested3Dictionary = [ String : nested2Dictionary ]
typealias nested4Dictionary = [ String : nested3Dictionary ]
let parameters2: nested2Dictionary = ["data": ["attributes": jsonData]]
let parameters3: nested3Dictionary = [ "data": [ "attributes" : jsonData ]]
let parameters4: nested4Dictionary = ["data": ["attributes": ["data": jsonData]]]
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment