Advertisement
Not a member of Pastebin yet?
Sign Up,
it unlocks many cool features!
- require 'time'
- put '/send_current_time' do
- json_string = params[:json] #returns the expected string
- json_object = JSON.parse json_string #thinks json_string is nil
- json_string_length = json_string.length #I know because this also thinks so
- time_string = json_object['time']
- time_object = Time.parse time_string
- end
Advertisement
Add Comment
Please, Sign In to add comment
Advertisement