Friday, 15 June 2012

Converting string into json in ruby -


I am saving a hash in the database field, which has type text, so when I take it from the table it seems Dirt: \ n "def check_type final_text =" --- \ nnew: test1 \ ndelivered: \ n mess: delete \ n \ n \ nNew: test1 \ ndelivered: \ n \ To get this string as a hash, I used YAML to convert that string to hash, its

convert this string to hash To do Instead of using this YAML I have no other way.

No comments:

Post a Comment