Fix docs in json module after #7537

This commit is contained in:
Dominik Picheta
2018-04-15 23:55:54 +01:00
committed by GitHub
parent 93fafc8545
commit b750082925

View File

@@ -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)