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
Name | Type(s) | Description |
---|---|---|
items | PageArray | |
options (optional) | array |
Return value
string
bool
JSON string of pages or boolean false on error
PagesExportImport methods and properties
API reference based on ProcessWire core version 3.0.236