3
我嘗試解析JSON響應。Rails解析JSON來散列
@response = ActiveSupport::JSON.decode(@data.body)
@應答:
{"response"=>[{"name"=>"Den", "other"=>[{"sex"=>"male"}]}]}
如何訪問
@response['response']['name']
和
@response['response']['name']['sex']