update
This commit is contained in:
parent
b6b3b29111
commit
9d285b6afd
|
@ -121,7 +121,7 @@ def _encodeJSONValueColourCompact:
|
||||||
([
|
([
|
||||||
$value[] |
|
$value[] |
|
||||||
_encodeJSONValueColourCompact
|
_encodeJSONValueColourCompact
|
||||||
] | join(",")) +
|
] | join(colourText(","; "array"))) +
|
||||||
colourText("]"; "array")
|
colourText("]"; "array")
|
||||||
else
|
else
|
||||||
colourText("[]"; "array")
|
colourText("[]"; "array")
|
||||||
|
@ -139,7 +139,7 @@ def _encodeJSONValueColourCompact:
|
||||||
colourText($objectKey | tojson; "objectKey") +
|
colourText($objectKey | tojson; "objectKey") +
|
||||||
":" +
|
":" +
|
||||||
($objectValue | _encodeJSONValueColourCompact)
|
($objectValue | _encodeJSONValueColourCompact)
|
||||||
] | join(",")) +
|
] | join(colourText(","; "object"))) +
|
||||||
colourText("}"; "object")
|
colourText("}"; "object")
|
||||||
else
|
else
|
||||||
colourText("{}"; "object")
|
colourText("{}"; "object")
|
||||||
|
@ -178,7 +178,7 @@ def _encodeJSONValueColourPretty($indent; $currentDepth):
|
||||||
$value[] |
|
$value[] |
|
||||||
$nextDepthIndent +
|
$nextDepthIndent +
|
||||||
_encodeJSONValueColourPretty($indent; $currentDepth + 1)
|
_encodeJSONValueColourPretty($indent; $currentDepth + 1)
|
||||||
] | join("," + $currentIndentDepthNewline)) +
|
] | join(colourText(","; "array") + $currentIndentDepthNewline)) +
|
||||||
$currentIndentDepthNewline +
|
$currentIndentDepthNewline +
|
||||||
$currentIndentDepthIndent +
|
$currentIndentDepthIndent +
|
||||||
colourText("]"; "array")
|
colourText("]"; "array")
|
||||||
|
@ -200,7 +200,7 @@ def _encodeJSONValueColourPretty($indent; $currentDepth):
|
||||||
colourText($objectKey | tojson; "objectKey") +
|
colourText($objectKey | tojson; "objectKey") +
|
||||||
":" + $currentIndentDepthSpace +
|
":" + $currentIndentDepthSpace +
|
||||||
($objectValue | _encodeJSONValueColourPretty($indent; $currentDepth + 1))
|
($objectValue | _encodeJSONValueColourPretty($indent; $currentDepth + 1))
|
||||||
] | join("," + $currentIndentDepthNewline)) +
|
] | join(colourText(","; "object") + $currentIndentDepthNewline)) +
|
||||||
$currentIndentDepthNewline +
|
$currentIndentDepthNewline +
|
||||||
$currentIndentDepthIndent +
|
$currentIndentDepthIndent +
|
||||||
colourText("}"; "object")
|
colourText("}"; "object")
|
||||||
|
|
Loading…
Reference in a new issue