multidimensional jagged container

view full story

http://stackoverflow.com – I'm a c++ noob trying to build a personal finance websocket server that tracks all of my assets and liabilities in real-time. I've found that I can make maps of maps to have a multi-dimensional system of key-value pairs. I've also found that boost::any and boost::variant can be used to store multiple types for values. My problem is that some levels aren't very complex compared to others. For example, a bank account will only have a value, the amount in the account, while a brokerage account will have many types of investments and characteristics, so I'd like to do something like (in json): (HowTos)