require 'json'value = '{"val":"test","val1":"test1","val2":"test2"}'puts JSON.parse(value) # => {"val"=>"test","val1"=>"test1","val2"=>"test2"}
欢迎分享,转载请注明来源:内存溢出
require 'json'value = '{"val":"test","val1":"test1","val2":"test2"}'puts JSON.parse(value) # => {"val"=>"test","val1"=>"test1","val2"=>"test2"}
欢迎分享,转载请注明来源:内存溢出
评论列表(0条)