Use Json::Value::ArrayIndex as the loop counter type when using Json::Value::size() as the loop bound.