The Json file parser erpects en item selector. If this is empty or "/" for root element in xpath. You get this error because the returned data is empty.
InvalidArgumentException: Passed variable is not an array or object, using empty array instead in ArrayIterator->__construct() (line 103 of modules/contrib/migrate_plus/src/Plugin/migrate_plus/data_parser/Json.php).

CommentFileSizeAuthor
#4 2827805-3.patch566 bytesBen Buske
#2 2827805-1.patch519 bytesBen Buske
Support from Acquia helps fund testing for Drupal Acquia logo

Comments

Ben Buske created an issue. See original summary.

Ben Buske’s picture

Status: Active » Needs review
FileSize
519 bytes

Status: Needs review » Needs work

The last submitted patch, 2: 2827805-1.patch, failed testing.

Ben Buske’s picture

Status: Needs work » Needs review
FileSize
566 bytes

  • mikeryan committed 23081a2 on 8.x-3.x authored by Ben Buske
    Issue #2827805 by Ben Buske: Json Parser produces error with empty/root...

  • mikeryan committed 4d58948 on 8.x-2.x authored by Ben Buske
    Issue #2827805 by Ben Buske: Json Parser produces error with empty/root...
mikeryan’s picture

Status: Needs review » Fixed

Committed (fixing coding standard error - space after if), thanks!

Status: Fixed » Closed (fixed)

Automatically closed - issue fixed for 2 weeks with no activity.