# -*- encoding: UTF-8 -*-
require 'json'
# data : どこぞから受け取る文字列(中身はJson_string風文字列)データ
data=[{"a": 1,"b": 1,"c": 88},{"a": 1,"b": 2,"c": 82},{"a": 1,"b": 3,"c": 79}]
p data.class
#aj=Array[data]
#puts aj
#aj=JSON[aj]
#p aj
#p aj.class
# 最終的には各keyとvalueを取得したい
#aj.each do |m|
# p m["a"]
# p m["b"]
# p m["c"]
#end
#JSON("[" + data + "]").each{|h| h.each{|k, v| puts "#{k}: #{v}" }}
JSON(data).each{|h| h.each{|k, v| puts "#{k}: #{v}" }}
IyAtKi0gZW5jb2Rpbmc6IFVURi04IC0qLQpyZXF1aXJlICdqc29uJwoKIyBkYXRhIDog44Gp44GT44Ge44GL44KJ5Y+X44GR5Y+W44KL5paH5a2X5YiX77yI5Lit6Lqr44GvSnNvbl9zdHJpbmfpoqjmloflrZfliJfvvInjg4fjg7zjgr8KZGF0YT1beyJhIjogMSwiYiI6IDEsImMiOiA4OH0seyJhIjogMSwiYiI6IDIsImMiOiA4Mn0seyJhIjogMSwiYiI6IDMsImMiOiA3OX1dCgpwIGRhdGEuY2xhc3MKCiNhaj1BcnJheVtkYXRhXQojcHV0cyBhagoKI2FqPUpTT05bYWpdCgojcCBhagojcCBhai5jbGFzcwoKIyDmnIDntYLnmoTjgavjga/lkIRrZXnjgah2YWx1ZeOCkuWPluW+l+OBl+OBn+OBhAojYWouZWFjaCBkbyB8bXwKIwlwIG1bImEiXQojCXAgbVsiYiJdCiMJcCBtWyJjIl0KI2VuZAoKI0pTT04oIlsiICsgZGF0YSArICJdIikuZWFjaHt8aHwgaC5lYWNoe3xrLCB2fCBwdXRzICIje2t9OiAje3Z9IiB9fQpKU09OKGRhdGEpLmVhY2h7fGh8IGguZWFjaHt8aywgdnwgcHV0cyAiI3trfTogI3t2fSIgfX0KCg==