Rails Casts JSON parser and importer