Read Json with php, some troubles : <p>I have tried, checked many previous topics, and i cant find the way.
<a href="https://stackoverflow.com/questions/6964403/parsing-json-with-php">Parsing JSON with PHP</a>
There is the answer, but im blind; actually, im a medimu PHP programmer, but im new with Json.</p>

<p>Here is my Json:</p>

<p>{"result":"true","disponible":{"aaa":"0.00001362",<strong>"bbb":"0.000392"</strong>,"ccc":"0.00788523","ddd":"0.00004443","eee":"0.0001755","fff":"0.1755",<strong>"ggg":"797.64618376"</strong>}}</p>

<p>My code:</p>

<pre><code>$balances = json_encode(get_balances(),true);
print_r($balances);
</code></pre>

<p>The screen show my Json, so everything is ok here. Now, i want take the bolded values from the json and assign it to PHP variables.</p>

<pre><code>$variable1 = $balances["disponible"]["bbb"];
$variable2 = $balances["disponible"]["ggg"];

echo "Valor 1: ".$variable1 ."&lt;br&gt;";
echo "Valor 2: ";$variable2 ;
</code></pre>

<p>But it dont work. I tried with many combinantions and nothing.
What im doing wrong?</p>

<p>Thanks a lot in advance. Im blocked with this.</p>
