changed JSON to appropriate json gem