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
| Name | Type(s) | Description |
|---|---|---|
$items | PageArray | |
$options (optional) | array |
Return value
stringJSON string of pages
$porter methods and properties
API reference based on ProcessWire core version 3.0.253