RESTfulAPI_BasicSerializer::serialize
Convert raw data (DataObject or DataList) to JSON ready to be consumed by the client API
Signature
public function serialize(mixed
$data )
Parameters
$data
— mixed- Data to serialize
Returns
- string
- JSON representation of data