Chris@4: A demonstration of a simple import of a JSON file. Chris@4: Chris@4: REQUIREMENTS Chris@4: ============ Chris@4: You need the contrib modules Migrate Plus and Migrate Tools. Chris@4: To make the products.json file available for import, the file will be copied Chris@4: from the artifacts folder to your sites/default/files folder. Chris@4: Chris@4: USAGE Chris@4: ===== Chris@4: Enable the module, check status, import all products and rollback with Drush Chris@4: drush en migrate_json_example Chris@4: drush migrate-status Chris@4: drush migrate-import product Chris@4: drush migrate-rollback product Chris@4: Chris@4: See config/optional/migrate_plus.migration.product.yml for details about the Chris@4: migration. Chris@4: Chris@4: Thanks to Jeff Geerling and Christophe for the original code: Chris@5: https://www.jeffgeerling.com/blog/2016/migrate-custom-json-feed-drupal-8-migrate-source-json Chris@5: Chris@5: https://colorfield.be/blog/drupal-8-json-custom-migration