Jsonify Ruby Hash string
Sometimes I have this issue of parsing JSON that contains the string representation of Ruby hash for whatever reason. Problem It happens obviously because the hash string is not JSON. require 'json' hsh_as_str = '{"order_id"=>nil}' JSON.parse(hsh_as_...