Actions
Bug #13093
closedJSON Parse
Bug #13093: JSON Parse
Status:
Closed
Assignee:
-
Target version:
-
ruby -v:
ruby 2.3.1p112 (2016-04-26 revision 54768) [x86_64-linux]
Description
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:
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
Files
Actions