Skip to content

Instantly share code, notes, and snippets.

@matthead
Created February 19, 2015 02:42
Show Gist options
  • Save matthead/cf254e03cb44b8b8ab3f to your computer and use it in GitHub Desktop.
Save matthead/cf254e03cb44b8b8ab3f to your computer and use it in GitHub Desktop.
get '/read' do
index = 0
outter_message = Array.new
outter_message.push("values:")
while index < 10
inner_message = {}
inner_message[:text]= index.to_s
index=index+1;
outter_message.push(inner_message)
end
outter_message.to_json
end
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment