Revert a Json parsed string to Json
This question already has an answer here:
require 'json'
h = JSON.parse string
This link will help to you..
https://hackhands.com/ruby-read-json-file-hash/
JSON.parse "{"user":{"email":"blah@blah.com","name":"blah Test 1051","mobile":"9999999999","dob":"00/00/0000","street":"somewhere","state":"something","city":"nowhere","pincode":"50000","Event_Code":"e0031"}}"
检查http://apidock.com/ruby/JSON/parse以获取更多参考
链接地址: http://www.djcxy.com/p/31730.html上一篇: 用jquery操纵json数据
下一篇: 将Json解析的字符串还原为Json