$item->getRawName(), 'name' => $item->getName(), 'info' => $item->getInfo(), 'cost' => $item->getCost(), 'buyable' => $item->isBuyable(), 'consumable' => $item->isConsumable(), 'reqSecu' => $item->getReqSecu(), ]; } echo Json::encode($result);