How to use C++ Json to decode serialized std::map

时间:2015-05-08 10:03:21

标签: jsoncpp

How should I decode following Json serialized map data by used EventDescription.

{"offsetTable":{{"brokerName":"testbrokerUDP-02","queueId":0,"topic":"vincent_topic"}:0,{"brokerName":"testbrokerUDP-02","queueId":1,"topic":"vincent_topic"}:0,{"brokerName":"testbrokerUDP-02","queueId":2,"topic":"vincent_topic"}:0,{"brokerName":"testbrokerUDP-02","queueId":3,"topic":"vincent_topic"}:0,{"brokerName":"testbrokerUDP-02","queueId":4,"topic":"vincent_topic"}:0,{"brokerName":"testbrokerUDP-02","queueId":5,"topic":"vincent_topic"}:0,{"brokerName":"testbrokerUDP-02","queueId":6,"topic":"vincent_topic"}:0,{"brokerName":"testbrokerUDP-02","queueId":7,"topic":"vincent_topic"}:0}}

0 个答案:

没有答案