modifying rake task to output JSON