mirror of
https://github.com/nim-lang/Nim.git
synced 2026-05-03 04:24:45 +00:00
Fix docs in json module after #7537
This commit is contained in:
@@ -958,7 +958,9 @@ proc `{}`*(node: JsonNode, keys: varargs[string]): JsonNode =
|
||||
## Traverses the node and gets the given value. If any of the
|
||||
## keys do not exist, returns ``nil``. Also returns ``nil`` if one of the
|
||||
## intermediate data structures is not an object.
|
||||
## Can be used to create tree structures on the fly (sometimes called `autovivification`:idx:):
|
||||
##
|
||||
## This proc can be used to create tree structures on the
|
||||
## fly (sometimes called `autovivification`:idx:):
|
||||
##
|
||||
## .. code-block:: nim
|
||||
## myjson{"parent", "child", "grandchild"} = newJInt(1)
|
||||
|
||||
Reference in New Issue
Block a user