Skip to content

Instantly share code, notes, and snippets.

Created February 20, 2018 14:14
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 anonymous/c895d328d1d8684c37308d7f5ae8353f to your computer and use it in GitHub Desktop.
Save anonymous/c895d328d1d8684c37308d7f5ae8353f to your computer and use it in GitHub Desktop.
Ruby create hash with array of hashes
d = {
"data_format" => 'contact',
"data_type" => 'json',
"action_type" => 'create',
"data" => [{
"id" => "123",
"first_name" => "Pete",
"last_name" => "Brum"
}],
}
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment