I am trying to get the "last" value from the "1INCH\/USDT" section. I am using block notation, as I understand it handles the special characters better. The code as written below fails to return a result. If I test by replacing "1INCH\/USDT" with "hello" it runs fine. I am guessing the slashes are giving me trouble. Can someone please help me code around that?
Code: Select all
/*
MyJSON:
{
"data": {
"1EARTH\/USDT": {
"currencyPair": "1EARTH\/USDT",
"last": "0.012645",
"lowestAsk": "0.012645",
"highestBid": "0.012606",
"24hrLow": "0.01068"
},
"1INCH\/USDT": {
"currencyPair": "1INCH\/USDT",
"last": "1.106",
"lowestAsk": "1.108",
"highestBid": "1.106",
"24hrLow": "0.998"
},
"aUSD\/USDT": {
"currencyPair": "aUSD\/USDT",
"last": "0.9981",
"lowestAsk": "0.999",
"highestBid": "0.9981",
"percentChange": "-0.0019",
"24hrLow": "0.9948"
}
}
}
*/
LabelToVar>MyJSON,sJSON
Let>MyPair=1INCH\/USDT
JSONParse>sJSON,$['data']['%MyPair%']['last'],result
MessageModal>Result_1