@@ -308,7 +308,7 @@ bool JSONParser::is_object() const
}
//--------------------------------------------------------------------------
-uint32_t JSONParser::size()
+uint32_t JSONParser::size() const
{
switch(JSONParser::type(m_at))
@@ -96,7 +96,7 @@ public:
/// * string: length of the string
/// * array: number of elements in the array
/// * object: number of keys in the object
- uint32_t size();
+ uint32_t size() const;
/// Returns the boolean value of the current element.
bool bool_value() const;