Bug #13093
Updated by nobu (Nobuyoshi Nakada) over 7 years ago
When trying to parse a JSON file from the following format: ``` [ {"original":"yahoo.fr","replace":"yahoo.fr"}, {"original":"zahnen.cl","replace":"zahnen.cl"}, {"original":"zzion.cl","replace":"zzion.cl"} ] ``` using the following code: ```ruby file=remplace_template def replace_template # Reads the file file=File.read 'replaces.json' JSON.parse(file,{symbolize_names: true, object_class: true}) end ``` I got the attached error file