In rails I made a post to an api and got a response, but I don\'t know how to get through the information and find the value of the \"code\" variable.
$ resp
Parse the response content with JSON.parse:
require 'json' ... data = JSON.parse(response.body) data['button']['code'] # => "dfhdsg7f23hjgfs7be7"