Just did that. Actually what it did is parse the JSON object into a vector of pairs of Account and BTC. I had a lot of fun writing this little snippet. Too bad your solution is simpler!