2014-02-17 34 views

回答

0

如果您使用的是C++库,则JSONNode类会重载[]运算符。

每文档:

JSONNode & operator [] (const json_string & name); 
const JSONNode & operator [] (const json_string & name) const; 

This will give you a reference to a child node either at a specific location or by it’s name. Asking for a 
node that is not there will result in undefined behavior. 
相关问题