update
This commit is contained in:
parent
9d285b6afd
commit
4122ab8e70
|
@ -83,7 +83,8 @@ def _encodeJSONValuePlainPretty($indent; $currentDepth):
|
|||
|
||||
$nextDepthIndent +
|
||||
($objectKey | tojson) +
|
||||
":" + $currentIndentDepthSpace +
|
||||
":" +
|
||||
$currentIndentDepthSpace +
|
||||
($objectValue | _encodeJSONValuePlainPretty($indent; $currentDepth + 1))
|
||||
] | join("," + $currentIndentDepthNewline)) +
|
||||
$currentIndentDepthNewline +
|
||||
|
@ -137,7 +138,7 @@ def _encodeJSONValueColourCompact:
|
|||
$value[$objectKey] as $objectValue |
|
||||
|
||||
colourText($objectKey | tojson; "objectKey") +
|
||||
":" +
|
||||
colourText(":"; "object") +
|
||||
($objectValue | _encodeJSONValueColourCompact)
|
||||
] | join(colourText(","; "object"))) +
|
||||
colourText("}"; "object")
|
||||
|
@ -198,7 +199,8 @@ def _encodeJSONValueColourPretty($indent; $currentDepth):
|
|||
|
||||
$nextDepthIndent +
|
||||
colourText($objectKey | tojson; "objectKey") +
|
||||
":" + $currentIndentDepthSpace +
|
||||
colourText(":"; "object") +
|
||||
$currentIndentDepthSpace +
|
||||
($objectValue | _encodeJSONValueColourPretty($indent; $currentDepth + 1))
|
||||
] | join(colourText(","; "object") + $currentIndentDepthNewline)) +
|
||||
$currentIndentDepthNewline +
|
||||
|
|
Loading…
Reference in a new issue