PagesExportImport::exportJSON()

Export a PageArray to JSON string

Usage

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

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

Arguments

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

Return value

string

JSON string of pages


PagesExportImport methods and properties

API reference based on ProcessWire core version 3.0.251