indent = 0 looks better for $(node: JsonNode)
This commit is contained in:
parent
5ee4806aa3
commit
06ad80cc45
1 changed files with 1 additions and 1 deletions
|
|
@ -864,7 +864,7 @@ proc pretty*(node: JsonNode, indent = 2): string =
|
||||||
proc `$`*(node: JsonNode): string =
|
proc `$`*(node: JsonNode): string =
|
||||||
## Converts `node` to its JSON Representation on one line.
|
## Converts `node` to its JSON Representation on one line.
|
||||||
result = ""
|
result = ""
|
||||||
toPretty(result, node, 1, false)
|
toPretty(result, node, 0, false)
|
||||||
|
|
||||||
iterator items*(node: JsonNode): JsonNode =
|
iterator items*(node: JsonNode): JsonNode =
|
||||||
## Iterator for the items of `node`. `node` has to be a JArray.
|
## Iterator for the items of `node`. `node` has to be a JArray.
|
||||||
|
|
|
||||||
Loading…
Add table
Add a link
Reference in a new issue