Json no implicit conversion of Hash into String Rails


#1

Hi,

i am getting below json response when i am executing snmp curl request.(Manually) and same response i need to call in rails

{“response”:"[snmp:handshake.timeout]"}

In rails i am trying below but i am getting no implicit conversion of Hash into String

         getSnmpresponse = {"response" => "[snmp.handshake.timeout]"}
snmp_output = JSON.parse(response)['response']

Thanks,
Raja