-
According to the example at http://jsoncpp.sourceforge.net/ if you try to access a property which doesn't exist by using the [] operator, it will return a null value. E.g.:
// Get the value of the member of root named 'encoding', return a 'null' value if
// there is no such member.
const Json::Value plugins = root["plug-ins"];
That's true if "root" is of...
2009-05-29 14:18:09 UTC in json-cpp
-
I know I can access a nested property like this:
Json::Value val = root["foo"]["bar"]["baz"];
But i'm wondering if there's some shorthand way to do it, such as this:
Json::Value val = root["foo.bar.baz"];
Is something like that currently possible? I guess maybe it's tricky since it could be ambiguous, as in this case:
{
"foo" :
2009-05-28 19:24:00 UTC in json-cpp
-
garthabrindoid committed revision 208 to the Telepresence Robotics Kit (TeRK) SVN repository, changing 2 files.
2009-03-10 19:18:09 UTC in Telepresence Robotics Kit (TeRK)
-
garthabrindoid committed revision 207 to the Telepresence Robotics Kit (TeRK) SVN repository, changing 1 files.
2009-03-10 19:16:35 UTC in Telepresence Robotics Kit (TeRK)
-
garthabrindoid committed revision 203 to the Telepresence Robotics Kit (TeRK) SVN repository, changing 18 files.
2008-10-02 19:37:25 UTC in Telepresence Robotics Kit (TeRK)
-
garthabrindoid committed revision 202 to the Telepresence Robotics Kit (TeRK) SVN repository, changing 4 files.
2008-09-26 21:17:26 UTC in Telepresence Robotics Kit (TeRK)
-
garthabrindoid committed revision 201 to the Telepresence Robotics Kit (TeRK) SVN repository, changing 2 files.
2008-09-26 17:03:10 UTC in Telepresence Robotics Kit (TeRK)
-
garthabrindoid committed revision 200 to the Telepresence Robotics Kit (TeRK) SVN repository, changing 11 files.
2008-09-15 21:58:02 UTC in Telepresence Robotics Kit (TeRK)
-
garthabrindoid committed revision 199 to the Telepresence Robotics Kit (TeRK) SVN repository, changing 18 files.
2008-09-15 19:09:06 UTC in Telepresence Robotics Kit (TeRK)
-
garthabrindoid committed revision 198 to the Telepresence Robotics Kit (TeRK) SVN repository, changing 1 files.
2008-09-15 17:34:47 UTC in Telepresence Robotics Kit (TeRK)