I'm using the Json-Spirit library, however i'm unsure how to read value from an object, without iterating over each of the name-value pairs.
If i have an object such that:
{
"boids":
{
"width": 10,
"count": 5,
"maxSpeedMin": 2,
"maxSpeedMax": 80,
"maxForceMin": 0.5,
"maxForceMax": 40
}
}
How can I access, for example, the width
value by name?