Ruby - parsing JSON coming via URL
问题 I'm sending a JSON object to ruby with javascript. But I cannot parse it in there. I tried following stuff but no luck. Also I've been searching around for while now, but I couldn't find anything helpful. Note that I'm very new ruby. My trials: def initialize(game_conf_json) parsed_conf = JSON.parse(conf_json) @param1 = parsed_conf['name'][0] @param2 = parsed_conf['surname'][0] =begin I also tried this: @param1 = parsed_conf['name'] @param2 = parsed_conf['surname'] But no matter what other