Updated to Drupal 8.5. Core Media not yet in use.
[yaffs-website] / web / modules / contrib / migrate_plus / src / Plugin / migrate_plus / data_parser / Json.php
index c94444bc888d5f7a2eb249b1012df4b4e19dbf01..df9b3fca8f2d099b7a3c8d44dc2a86f3ef245e78 100755 (executable)
@@ -50,7 +50,7 @@ class Json extends DataParserPluginBase implements ContainerFactoryPluginInterfa
     // valid utf8 - see http://php.net/manual/en/function.json-decode.php#86997.
     if (is_null($source_data)) {
       $utf8response = utf8_encode($response);
-      $source_data = json_decode($utf8response);
+      $source_data = json_decode($utf8response, TRUE);
     }
 
     // Backwards-compatibility for depth selection.