2014-02-17 86 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. 
相關問題