I’m trying to API response in multiple curly braces, but it’s not coming. below is my code. /** * @return array */ public function Newdata() { //get Customer Order collection by Customer Id and Email Magento 2 $customerCollection = $this->_customer->getCollection() ->addAttributeToSelect("*") ->load(); $customeid = $customerCollection->getData('customer_id'); try { //$customerEmailId = "ncode.rushikesh@gmail.com"; […]