public function jsonSerialize() { $object = new stdClass(); $object->{'$id'} = (string) $this->objectID; return $object; }