From 990ed2dc53108e4eaff78729bd1be934f4e98d32 Mon Sep 17 00:00:00 2001 From: Niels Lohmann Date: Fri, 10 Jul 2026 13:34:29 +0200 Subject: [PATCH] :art: fix format Signed-off-by: Niels Lohmann --- docs/mkdocs/docs/api/basic_json/value.md | 6 ++---- 1 file changed, 2 insertions(+), 4 deletions(-) diff --git a/docs/mkdocs/docs/api/basic_json/value.md b/docs/mkdocs/docs/api/basic_json/value.md index e4f1bac5f..2e9b85a2b 100644 --- a/docs/mkdocs/docs/api/basic_json/value.md +++ b/docs/mkdocs/docs/api/basic_json/value.md @@ -17,6 +17,8 @@ ValueType value(const json_pointer& ptr, const ValueType& default_value) const; ``` +This is equivalent to Python's `dict.get(key, default)`. + 1. Returns either a copy of an object's element at the specified key `key` or a given default value if no element with key `key` exists. @@ -50,10 +52,6 @@ ValueType value(const json_pointer& ptr, - Unlike [`operator[]`](operator[].md), this function does not implicitly add an element to the position defined by `key`/`ptr` key. This function is furthermore also applicable to const objects. -!!! note - - This is equivalent to Python's `dict.get(key, default)`. - ## Template parameters `KeyType`