extend variable to array
Budget: $30 – $250 USD
I have output like this below
var result = SendCommand("xmr^get_accounts^");
Console.WriteLine("Answer# {0}", result);
Answer# {
"subaddress_accounts": [{
"account_index": 0,
"balance": 0,
"base_address": "43tfr1cMxySK2vybQ4HwXhZL3KQcgzccFRM36w2U1kuz7GHt7KGm9NeVq9XsCrjtewiW5MbPmYw2V6kMiDHW4epNTVVU4Bu",
"label": "Primary account",
"tag": "",
"unlocked_balance": 0
}],
"total_balance": 0,
"total_unlocked_balance": 0
}
I need all arrays and sub-arrays of output included in the result variable, so it can be easily accessed as result["base_address"] or result["balance"] for example.
var result = SendCommand("xmr^get_accounts^");
Console.WriteLine("Answer# {0}", result);
Answer# {
"subaddress_accounts": [{
"account_index": 0,
"balance": 0,
"base_address": "43tfr1cMxySK2vybQ4HwXhZL3KQcgzccFRM36w2U1kuz7GHt7KGm9NeVq9XsCrjtewiW5MbPmYw2V6kMiDHW4epNTVVU4Bu",
"label": "Primary account",
"tag": "",
"unlocked_balance": 0
}],
"total_balance": 0,
"total_unlocked_balance": 0
}
I need all arrays and sub-arrays of output included in the result variable, so it can be easily accessed as result["base_address"] or result["balance"] for example.