mirror of
https://github.com/nlohmann/json.git
synced 2026-10-12 01:17:14 +00:00
deploy: e9c3985f0a
This commit is contained in:
1 parent
e86d443881
commit
7bc7ca0e06
301 files changed
+1230
-510
No files matched your search
@@ -4,7 +4,8 @@
|
||||
|
||||
In many situations, such as configuration files, missing values are not exceptional, but may be treated as if a default
|
||||
value was present. For this case, use [`value(key, default_value)`](../../api/basic_json/value.md) which takes the key
|
||||
you want to access and a default value in case there is no value stored with that key.
|
||||
you want to access and a default value in case there is no value stored with that key. This is equivalent to Python's
|
||||
`dict.get(key, default)`.
|
||||
|
||||
## Example
|
||||
|
||||
|
||||
Reference in new issue
Block a user