mirror of
https://github.com/akheron/jansson.git
synced 2025-04-08 06:43:11 +00:00
few more documented methods
This commit is contained in:
parent
319970cec9
commit
71bb0e3585
1 changed files with 24 additions and 1 deletions
|
@ -785,7 +785,30 @@ namespace.
|
|||
.. cfunction:: bool json::Value::is_string()
|
||||
|
||||
Returns ``true`` if the type of the :ctype:`Value` is :const:`JSON_STRING`.
|
||||
|
||||
.. cfunction:: proxy json::Value::at(int index)
|
||||
|
||||
Returns a proxy object referencing a specific array element.
|
||||
|
||||
.. cfunction:: proxy json::Value::operator[](int index)
|
||||
|
||||
Returns a proxy object referencing a specific array element.
|
||||
Synonym for `json::Value::at(int index)`.
|
||||
|
||||
.. cfunction:: proxy json::Value::get(const char* key)
|
||||
|
||||
Returns a proxy object referencing a specific object property.
|
||||
|
||||
.. cfunction:: proxy json::Value::operator[](const char* key)
|
||||
|
||||
Synonym for `json::Value::get(const char*)`.
|
||||
|
||||
.. cfunction:: const char* json::Value::as_cstring()
|
||||
|
||||
Fetch the value as a C string, if the stored value is of type
|
||||
:const:`JSON_STRING`. Otherwise, :const:`NULL` is returned.
|
||||
|
||||
.. cfunction:: std::string json::Value::as_string()
|
||||
|
||||
Fetch the value as a C++ string, if the stored value is of type
|
||||
:const:`JSON_STRING`. An empty string is returned if the value
|
||||
is not a string type.
|
||||
|
|
Loading…
Add table
Reference in a new issue