ptree

boost::ptree find? or how to access deep arrays? C++

倾然丶 夕夏残阳落幕 提交于 2019-11-28 10:34:40
I have been trying for too much time now, to access a json_reader ptree from the boost library. I have a json file that is capsulated really often: (pseudo-json:) "Foo": { "nameofFoo:"foofoo" "Bar": [{ "BarFoo": { BarFooDeep: { BarFooDeepDeep: { "BarFooValue1": 123 "BarFooValue2" : 456 } } } "FooBar": [ { "FooBarDeep" :[ { FooBarDeepDeep:[ { FooBarValue1: "ineedthis" FooBarValue2: "andthis" } ] FooBarDeepDeep1:[ { FooBarValue1: "ineedthis" FooBarValue2: "andthis" } ] "FooBarDeep" :[ { FooBarDeepDeep2:[ { FooBarValue1: "ineedthis" FooBarValue2: "andthis" } ] FooBarDeepDeep3:[ { FooBarValue1:

boost::ptree find? or how to access deep arrays? C++

倖福魔咒の 提交于 2019-11-27 03:39:39
问题 I have been trying for too much time now, to access a json_reader ptree from the boost library. I have a json file that is capsulated really often: (pseudo-json:) "Foo": { "nameofFoo:"foofoo" "Bar": [{ "BarFoo": { BarFooDeep: { BarFooDeepDeep: { "BarFooValue1": 123 "BarFooValue2" : 456 } } } "FooBar": [ { "FooBarDeep" :[ { FooBarDeepDeep:[ { FooBarValue1: "ineedthis" FooBarValue2: "andthis" } ] FooBarDeepDeep1:[ { FooBarValue1: "ineedthis" FooBarValue2: "andthis" } ] "FooBarDeep" :[ {