How to get data from JSON after decode : <p>From API i get following JSON string</p>

<pre><code>{  
   "cost":1000.00,
   "cost_ua":25900.44,
   "pay_date":"29-07-2017",
   "payments":{  
      "1":{  
         "tar":"90965",
         "name":"Ввозная ( импортная ) пошлина",
         "basis_value":25900.44,
         "sum_type":"грн.",
         "pay_description":{  
            "name":"Льготная/полная",
            "value":"5.00 %",
            "comments":"ЗУ N 584-VII",
            "document":{  
               "num":"584-VII",
               "date":"19-09-2013"
            }
         }
      },
      "2":{ "name":"Налог на добавленную стоимость ( НДС )" }
   },
   "payments_sum":6734.11,
   "payments_ua_sum":260.00,
   "payments_persent":26.00
}
</code></pre>

<p>After json_decode how can i get "basis_value" and "comments" ?
I tried this, but it not work</p>

<pre><code>$result_parse = json_decode($response);

echo $result_parse-&gt;payments-&gt;basis_value;
echo $result_parse-&gt;payments-&gt;1-&gt;basis_value;
</code></pre>
