We read every piece of feedback, and take your input very seriously.
To see all available qualifiers, see our documentation.
1 parent 95f390e commit c6100e5Copy full SHA for c6100e5
Dict.ark
@@ -304,6 +304,15 @@
304
305
(+ _output "]") }))
306
307
+# @brief Convert a given dictionary to its JSON representation
308
+# @details The original dictionary is not modified
309
+# @param _D dictionary to convert to JSON
310
+# =begin
311
+# (let data (dict "key" "value" "hello" nil "a" [1 true]))
312
+# (let new (dict "key" "new value" 5 12))
313
+# (print (dict:asJson data new)) # {"key": "value", "hello": null, "a": [1, true]}
314
+# =end
315
+# @author https://github.com/SuperFola
316
(let asJson (fun (_D) {
317
(mut _output [])
318
(let _keys (keys _D))
0 commit comments