PagesExportImport::importJSON()

Import a PageArray from a JSON string

Given JSON string must be one previously exported by the exportJSON() method in this class.

Usage

// basic usage
$items = $pagesExportImport->importJSON(string $json);

// usage with all arguments
$items = $pagesExportImport->importJSON(string $json, array $options = []);

Arguments

NameType(s)Description
$jsonstring
$options (optional)array

Return value


PagesExportImport methods and properties

API reference based on ProcessWire core version 3.0.251