Skip to content

Instantly share code, notes, and snippets.

@fridgerator
Created December 29, 2016 20:48
Show Gist options
  • Save fridgerator/6ad4b9f6e049dcbb6042f346ca39b6e8 to your computer and use it in GitHub Desktop.
Save fridgerator/6ad4b9f6e049dcbb6042f346ca39b6e8 to your computer and use it in GitHub Desktop.
alias RecursiveType = String |
Int32 |
Array(RecursiveType) |
Hash(String, RecursiveType)
extra_fields = {} of String => RecursiveType
extra_fields = {
"teste" => "teste",
"foo" => {
"bar" => "blabla"
},
"array" => ["teste", "teste"],
"deep" => [
{
"foo" => {
"foo" => "bar"
}
}
]
}
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment