what is the best way to convert a json formatted key value pair to ruby hash with symbol as key?

前端 未结 7 800
无人共我
无人共我 2020-12-23 13:08

I am wondering what is the best way to convert a json formatted key value pair to ruby hash with symbol as key: example:

{ \'user\': { \'name\': \'foo\', \'         


        
相关标签:
7条回答
  • 2020-12-23 13:47

    Of course, there is a json gem, but that handles only double quotes.

    0 讨论(0)
提交回复
热议问题