You can use boost and its ptree lib.
It can be used as header-only lib.