I use jsoncpp to parse my config.json. It library use std::map to contain pairs key:value. Map is unordered container. Now I need to parse elements in the same order in which they are in the file (do not ask why, it's not my whimsy).
I did some searching and I found that
you can write your own parser or rewrite jsoncpp to use list instead of map.
Can I really replace the list with a map in jsoncpp?
Or, maybe, you give me some idea, how I can save order of elements when I parse file with jsoncpp?