как мне достать {"tariff":{"type":"epolicy","id":43343,"name":"...................sSell":false,"onlyOwnInsurer":false} и переделать его в url
[{"tariff":{"type":"epolicy","id":43343,"name":"...................sSell":false,"onlyOwnInsurer":false},{"tariff":{"type":"epolicy","id":43440,"name":.....................ent":524.88,"commission":0.00,"discountedPayment":524.88,"discountedCommission":0.00,"approx":true,"canCreated":true,"crossSell":false,"onlyOwnInsurer":false}]
Евроинс Украина
Евроинс Украина
492 грн
Array
Франшиза 1000 грн
$autoCategory = $jsonCN['0']['category'];
$priceosago = curl_init("{$apiurl}/tariff/choose/policy?autoCategory={$autoCategory}®istrationPlace={$registrationPlace}&customerCategory=NATURAL&dateFrom={$date}&dateTo={$newDate}&usageMonths=0&taxi={$taxi}&franchise={$franchise}&salePoint={$salePoint}");
curl_setopt($priceosago, CURLOPT_COOKIE, 'JSESSIONID='.$jsonDe["sessionId"]);
curl_setopt($priceosago, CURLOPT_RETURNTRANSFER, true);
$resultprice = curl_exec($priceosago);
$jsonprice = json_decode($resultprice, true);
echo '<div class="row">
<div class="col-12 propositions__header">
<div class="container__filter container__filter_rating">
<!-- <span class="filter filter_rating js-filter js-filter_rating" data-order="asc">
<span class="order order__rating js-order">Рейтинг надежности</span>
</span>
<span class="fa fa-question-circle" title="Составлен на основе рейтинга МТСБУ по ОСАГО"></span>-->
</div>
<div class="container__filter container__filter_price">
<span class="filter filter_price js-filter js-filter_price" data-order="asc" >
<span class="order order__price js-order">
Цена<span class="fa fa-sort-amount-asc" aria-hidden="true"></span>
</span>
</span>
</div>
</div>
</div>
<div id="propositionsList" >
<div class="js-list_propositions visible-3_only">';
echo $resultprice;
foreach($jsonprice as $jsonprices => $value) {
echo'
<div class="js-proposition">
<div class="row proposition_row ">
<div class="col-6 col-md-4 proposition__company">
<img src="front/company/'. $value['tariff']['insurer']['id'].'.png" alt="'. $value['tariff']['insurer']['name'].'" class="img_company">
<div class="filter filter_rating">
<span class="text">'. $value['tariff']['insurer']['name'].'</span>
</div>
</div>
<div class="col-6 col-md-5 proposition__price">
<span>
<strike class="price_striked"></strike>
<span class="currency"></span>
</span>
<span class="price">'. $value['payment'].'
<span class="currency"> грн</span>
</span>
'.$value.'
<div class="discont">
<span class="fa fa-question-circle"
title="Часть ущерба, которая не покрывается за счет страховой компании и возмещается страхователем из собственных средств"></span>
Франшиза '. $value['tariff']['franchise'].' грн
</div>
</div>
<div class="col-12 col-md-3 proposition__buy_row">
<a href="checkout.php?tariff='. $value['tariff']['id'].'&cars=B1" class="form__submit_vehicle btn_buy js-proposition__buy"
data-tariff-id="33818" data-proposition="0" data-name="Оберег">
<span class="text_btn" data-fullprice="1089">Купить <span
class="to-trim"></span></span><span class="fa fa-angle-right"
aria-hidden="true"></span>
</a>
</div>
</div>
</div>
';
};
echo '