JSON::ParserError: 757: unexpected token at '{

前端 未结 4 1368
醉梦人生
醉梦人生 2021-01-05 00:43

the current hash is

{\\\"report_name\\\"=>\\\"Study/Control: ABIRATERONE ACETATE - 20151413355\\\", \\\"left_mue_start_date\\\"=>\\\"02-26-2015\\\",          


        
4条回答
  •  梦谈多话
    2021-01-05 01:08

    To avoid using eval you could use JSON.parse ch.gsub('=>', ':') this way you will get a HASH from your HASH stored as STRING

提交回复
热议问题