> On Oct. 14, 2014, 1:50 p.m., Alexander Rukletsov wrote:
> > It looks to me that adding this functionality imposes a restriction on key 
> > names in JSON. We won't be able to do something like this:
> >     
> >     object.values["name_[en]_full"] = "Name";
> >     auto result = object.find<JSON::String>("name_[en]_full");
> >     
> > I don't think it is a big deal or we would need it, but maybe let's make 
> > this restriction explicit by introducing a vaidation function.

You use the "dot" notation to look up fields (e.g., name_.en._full), and the 
array subscript to look up elements in an array.


- Benjamin


-----------------------------------------------------------
This is an automatically generated e-mail. To reply, visit:
https://reviews.apache.org/r/26634/#review56504
-----------------------------------------------------------


On Oct. 25, 2014, 11:40 p.m., Benjamin Hindman wrote:
> 
> -----------------------------------------------------------
> This is an automatically generated e-mail. To reply, visit:
> https://reviews.apache.org/r/26634/
> -----------------------------------------------------------
> 
> (Updated Oct. 25, 2014, 11:40 p.m.)
> 
> 
> Review request for mesos, Alexander Rukletsov and Ben Mahler.
> 
> 
> Repository: mesos-git
> 
> 
> Description
> -------
> 
> See summary.
> 
> 
> Diffs
> -----
> 
>   3rdparty/libprocess/3rdparty/stout/include/stout/json.hpp 
> 2e1f78e509b4270bdf33c50f5bca59bca4cb1bc4 
>   3rdparty/libprocess/3rdparty/stout/tests/json_tests.cpp 
> 3bfc8e639185323a3809ca82c09428b3b1b8afe5 
> 
> Diff: https://reviews.apache.org/r/26634/diff/
> 
> 
> Testing
> -------
> 
> make check
> 
> 
> Thanks,
> 
> Benjamin Hindman
> 
>

Reply via email to