From: David S. <da...@st...> - 2015-05-15 21:13:33
|
On 05/15/2015 11:47 AM, J (Jean-Claude Gervais) wrote: > Hi! > > Newbie question: > > I have a Json::Value which contains an object like > > "SOMEOBJECT":{ > > "OTHEROBJECT": { > "VAL1": "string value a", > "VAL2": 25, > "VAL3": 10, > "VAL4": "string value w", > "VAL5": 1, > "VAL6": "string value x" > } > > } > > Given the Json::Value, I know how to obtain the names of its internal > objects: getMemberNames > > But how can I obtain the name of the object itself (SOMEOBJECT) ? In JSON, objects don't have names. { ... } is an object "asdf":... is an entry within an object. -- David -- David Sankel <da...@st...> Stellar Science Ltd Co - Stellar Scientific Software Solutions |