PagesExportImport::exportJSON() method

Export a PageArray to JSON string

Usage

// basic usage
$string = $porter->exportJSON(PageArray $items);

// usage with all arguments
$string = $porter->exportJSON(PageArray $items, array $options = []);

Arguments

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

Return value

string

JSON string of pages


$porter methods and properties

API reference based on ProcessWire core version 3.0.252