From 67a44210445704ad20f253bd1a2abdb0ea409a55 Mon Sep 17 00:00:00 2001 From: John Bartholomew Date: Tue, 16 Apr 2024 16:43:28 +0100 Subject: [PATCH] chore: ./tools/scripts/update_web_content.sh --- doc/ref/stdlib.html | 37 ++++++++++++++++++++++++++++++++++++- 1 file changed, 36 insertions(+), 1 deletion(-) diff --git a/doc/ref/stdlib.html b/doc/ref/stdlib.html index 7fc55ea85..dc18e227d 100644 --- a/doc/ref/stdlib.html +++ b/doc/ref/stdlib.html @@ -1559,6 +1559,41 @@

+
+
+
+

+ std.manifestJson(value) +

+
+
+
+
+
+
+
+

+ + Available since version 0.10.0. + +

+

+ Convert the given object to a JSON form. Under the covers, + it calls std.manifestJsonEx with a 4-space indent: +

+

+ Example: std.manifestJson( + { + x: [1, 2, 3, true, false, null, + "string\nstring"], + y: { a: 1, b: 2, c: [1, 2] }, + }) yields "{\n \"x\": [\n 1,\n 2,\n 3,\n true,\n false,\n null,\n \"string\\nstring\"\n ],\n \"y\": {\n \"a\": 1,\n \"b\": 2,\n \"c\": [\n 1,\n 2\n ]\n }\n}". +

+
+
+
+
+
@@ -1579,7 +1614,7 @@

Convert the given object to a minified JSON form. Under the covers, - it calls std.manifestJsonEx:'): + it calls std.manifestJsonEx:

Example: std.manifestJsonMinified(