mirror of
https://github.com/nim-lang/Nim.git
synced 2026-08-28 01:21:40 +00:00
This reverts commit b2c6db97f9.
This commit is contained in:
@@ -677,7 +677,7 @@ proc pretty*(node: JsonNode, indent = 2): string =
|
||||
## Similar to prettyprint in Python.
|
||||
runnableExamples:
|
||||
let j = %* {"name": "Isaac", "books": ["Robot Dreams"],
|
||||
"details": {"age": 35, "number": 3.125}}
|
||||
"details": {"age": 35, "pi": 3.1415}}
|
||||
doAssert pretty(j) == """
|
||||
{
|
||||
"name": "Isaac",
|
||||
@@ -686,7 +686,7 @@ proc pretty*(node: JsonNode, indent = 2): string =
|
||||
],
|
||||
"details": {
|
||||
"age": 35,
|
||||
"number": 3.125
|
||||
"pi": 3.1415
|
||||
}
|
||||
}"""
|
||||
result = ""
|
||||
|
||||
Reference in New Issue
Block a user