Skip to content

Commit 6ed1c12

Browse files
author
Lukasz A.J. Wrona
committed
Add size property to json_objectt
1 parent c24ff8a commit 6ed1c12

File tree

1 file changed

+5
-0
lines changed

1 file changed

+5
-0
lines changed

src/util/json.h

Lines changed: 5 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -361,6 +361,11 @@ class json_objectt:public jsont
361361
return object.find(key);
362362
}
363363

364+
std::size_t size() const
365+
{
366+
return object.size();
367+
}
368+
364369
iterator begin()
365370
{
366371
return object.begin();

0 commit comments

Comments
 (0)