blockchain.info select value

Challenge: Show data from https://blockchain.info/tobtc?currency=USD&value=500 where USD and value is a parameter
Twig-Code:
{% set js1 = '{"ARS":{"15m":5497100.389999999664723873138427734375,"last":5497100.389999999664723873138427734375,"buy":5497100.389999999664723873138427734375,"sell":5497100.389999999664723873138427734375,"symbol":"ARS"},"AUD":{"15m":30755.29999999999927240423858165740966796875,"last":30755.29999999999927240423858165740966796875,"buy":30755.29999999999927240423858165740966796875,"sell":30755.29999999999927240423858165740966796875,"symbol":"AUD"},"BRL":{"15m":113111.0700000000069849193096160888671875,"last":113111.0700000000069849193096160888671875,"buy":113111.0700000000069849193096160888671875,"sell":113111.0700000000069849193096160888671875,"symbol":"BRL"},"CAD":{"15m":27238.99000000000160071067512035369873046875,"last":27238.99000000000160071067512035369873046875,"buy":27238.99000000000160071067512035369873046875,"sell":27238.99000000000160071067512035369873046875,"symbol":"CAD"},"CHF":{"15m":20416.6500000000014551915228366851806640625,"last":20416.6500000000014551915228366851806640625,"buy":20416.6500000000014551915228366851806640625,"sell":20416.6500000000014551915228366851806640625,"symbol":"CHF"},"CLP":{"15m":19994698.5899999998509883880615234375,"last":19994698.5899999998509883880615234375,"buy":19994698.5899999998509883880615234375,"sell":19994698.5899999998509883880615234375,"symbol":"CLP"},"CNY":{"15m":143027.23999999999068677425384521484375,"last":143027.23999999999068677425384521484375,"buy":143027.23999999999068677425384521484375,"sell":143027.23999999999068677425384521484375,"symbol":"CNY"},"CZK":{"15m":512864.0200000000186264514923095703125,"last":512864.0200000000186264514923095703125,"buy":512864.0200000000186264514923095703125,"sell":512864.0200000000186264514923095703125,"symbol":"CZK"},"DKK":{"15m":152372.14999999999417923390865325927734375,"last":152372.14999999999417923390865325927734375,"buy":152372.14999999999417923390865325927734375,"sell":152372.14999999999417923390865325927734375,"symbol":"DKK"},"EUR":{"15m":20666.40999999999985448084771633148193359375,"last":20666.40999999999985448084771633148193359375,"buy":20666.40999999999985448084771633148193359375,"sell":20666.40999999999985448084771633148193359375,"symbol":"EUR"},"GBP":{"15m":17473.24000000000160071067512035369873046875,"last":17473.24000000000160071067512035369873046875,"buy":17473.24000000000160071067512035369873046875,"sell":17473.24000000000160071067512035369873046875,"symbol":"GBP"},"HKD":{"15m":164436.140000000013969838619232177734375,"last":164436.140000000013969838619232177734375,"buy":164436.140000000013969838619232177734375,"sell":164436.140000000013969838619232177734375,"symbol":"HKD"},"HRK":{"15m":143925.17000000001280568540096282958984375,"last":143925.17000000001280568540096282958984375,"buy":143925.17000000001280568540096282958984375,"sell":143925.17000000001280568540096282958984375,"symbol":"HRK"},"HUF":{"15m":7970344.9800000004470348358154296875,"last":7970344.9800000004470348358154296875,"buy":7970344.9800000004470348358154296875,"sell":7970344.9800000004470348358154296875,"symbol":"HUF"},"INR":{"15m":1668117.379999999888241291046142578125,"last":1668117.379999999888241291046142578125,"buy":1668117.379999999888241291046142578125,"sell":1668117.379999999888241291046142578125,"symbol":"INR"},"ISK":{"15m":5804743.040000000037252902984619140625,"last":5804743.040000000037252902984619140625,"buy":5804743.040000000037252902984619140625,"sell":5804743.040000000037252902984619140625,"symbol":"ISK"},"JPY":{"15m":2855178.200000000186264514923095703125,"last":2855178.200000000186264514923095703125,"buy":2855178.200000000186264514923095703125,"sell":2855178.200000000186264514923095703125,"symbol":"JPY"},"KRW":{"15m":27354336.2199999988079071044921875,"last":27354336.2199999988079071044921875,"buy":27354336.2199999988079071044921875,"sell":27354336.2199999988079071044921875,"symbol":"KRW"},"NZD":{"15m":33977.77999999999883584678173065185546875,"last":33977.77999999999883584678173065185546875,"buy":33977.77999999999883584678173065185546875,"sell":33977.77999999999883584678173065185546875,"symbol":"NZD"},"PLN":{"15m":98728.75,"last":98728.75,"buy":98728.75,"sell":98728.75,"symbol":"PLN"},"RON":{"15m":55729,"last":55729,"buy":55729,"sell":55729,"symbol":"RON"},"RUB":{"15m":1345952.96999999997206032276153564453125,"last":1345952.96999999997206032276153564453125,"buy":1345952.96999999997206032276153564453125,"sell":1345952.96999999997206032276153564453125,"symbol":"RUB"},"SEK":{"15m":204557.58999999999650754034519195556640625,"last":204557.58999999999650754034519195556640625,"buy":204557.58999999999650754034519195556640625,"sell":204557.58999999999650754034519195556640625,"symbol":"SEK"},"SGD":{"15m":29242.3499999999985448084771633148193359375,"last":29242.3499999999985448084771633148193359375,"buy":29242.3499999999985448084771633148193359375,"sell":29242.3499999999985448084771633148193359375,"symbol":"SGD"},"THB":{"15m":751742.459999999962747097015380859375,"last":751742.459999999962747097015380859375,"buy":751742.459999999962747097015380859375,"sell":751742.459999999962747097015380859375,"symbol":"THB"},"TRY":{"15m":362323.4799999999813735485076904296875,"last":362323.4799999999813735485076904296875,"buy":362323.4799999999813735485076904296875,"sell":362323.4799999999813735485076904296875,"symbol":"TRY"},"TWD":{"15m":30440956.17000000178813934326171875,"last":30440956.17000000178813934326171875,"buy":30440956.17000000178813934326171875,"sell":30440956.17000000178813934326171875,"symbol":"TWD"},"USD":{"15m":20985.360000000000582076609134674072265625,"last":20985.360000000000582076609134674072265625,"buy":20985.360000000000582076609134674072265625,"sell":20985.360000000000582076609134674072265625,"symbol":"USD"}}' %} {% set shcDosc = (js1 | doshortcode) %} {% set shcArr = (shcDosc | json_decode(TRUE) ) %}
Value:

Result: {{nojsonvalue}}
In the above twig-code is “nameoftemplate=blockchaininfogetcurr”, in there is the URL https://blockchain.info/ticker and this twig
{{ _context | json_encode }}

In Action:

Value:

Result: 0.02385001