parseJson.js 280 B

1234567891011
  1. module.exports = function(input, options) {
  2. return new Promise(function(resolve, reject) {
  3. input.currentJob.files = input.currentJob.files.map(file => {
  4. return {
  5. ...file,
  6. content: JSON.parse(file.content),
  7. };
  8. });
  9. resolve(input);
  10. });
  11. };