Chris Bartley - 2009-05-28

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" :
   {
      "bar" :
      {
         "baz" : "bif"
      }
   },

   "foo.bar" :
   {
      "baz" : "borf"
   }
}