src/Entities/Products/ProductShort.php
public function jsonSerialize()
    {
        return [
            'id' => $this->getId(),
            'name' => $this->getName(),
            'price' => $this->getPrice(),
            'description' => $this->getDescription(),
            'shortDescription' => $this->getShortDescription(),
            'organisation' => $this->getOrganisation(),
            'available' => $this->isAvailable(),
            'enabled' => $this->isEnabled(),
            'sku' => $this->getSku(),
            'availableOnline' => $this->isAvailableOnline(),
            'productType' => $this->getProductType(),
            'groupItems' => $this->getGroupItems(),
        ];
    }
public function jsonSerialize()
    {
        return [
            'id' => $this->getId(),
            'name' => $this->getName(),
            'price' => $this->getPrice(),
            'description' => $this->getDescription(),
            'shortDescription' => $this->getShortDescription(),
            'organisation' => $this->getOrganisation(),
            'available' => $this->isAvailable(),
            'enabled' => $this->isEnabled(),
            'sku' => $this->getSku(),
            'availableOnline' => $this->isAvailableOnline(),
            'productType' => $this->getProductType(),
            'groupItems' => $this->getGroupItems(),
        ];
    }
Specify data which should be serialized to JSON