Created
June 4, 2018 21:44
-
-
Save thushw/40e425e31c83a04718b0e90e936a048f to your computer and use it in GitHub Desktop.
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
require 'json' | |
require 'ostruct' | |
json_object = JSON.parse(json_string, object_class: OpenStruct) | |
json_object.data.each { | |
|d| puts "created time: %s message: %s id: %s" % [d.created_time, d.message, d.id] | |
} |
Sign up for free
to join this conversation on GitHub.
Already have an account?
Sign in to comment