aboutsummaryrefslogtreecommitdiff
path: root/runtime/lua/vim/_meta/json.lua
diff options
context:
space:
mode:
authorJustin M. Keyes <justinkz@gmail.com>2025-01-01 12:29:51 -0800
committerGitHub <noreply@github.com>2025-01-01 12:29:51 -0800
commitdc692f553aae367a03f286e0d59561247941f96c (patch)
tree5a4bbbf2cc37c583a491258ebba8e2f421e0079a /runtime/lua/vim/_meta/json.lua
parent9d114b720514b0bde96dbdd9b6ef328d232a1589 (diff)
downloadrneovim-dc692f553aae367a03f286e0d59561247941f96c.tar.gz
rneovim-dc692f553aae367a03f286e0d59561247941f96c.tar.bz2
rneovim-dc692f553aae367a03f286e0d59561247941f96c.zip
docs: misc #31479
Diffstat (limited to 'runtime/lua/vim/_meta/json.lua')
-rw-r--r--runtime/lua/vim/_meta/json.lua14
1 files changed, 7 insertions, 7 deletions
diff --git a/runtime/lua/vim/_meta/json.lua b/runtime/lua/vim/_meta/json.lua
index 1a7e87db9c..0d59de5fa6 100644
--- a/runtime/lua/vim/_meta/json.lua
+++ b/runtime/lua/vim/_meta/json.lua
@@ -25,18 +25,18 @@ vim.json = {}
---
---@param str string Stringified JSON data.
---@param opts? table<string,any> Options table with keys:
---- - luanil: (table) Table with keys:
---- * object: (boolean) When true, converts `null` in JSON objects
---- to Lua `nil` instead of |vim.NIL|.
---- * array: (boolean) When true, converts `null` in JSON arrays
---- to Lua `nil` instead of |vim.NIL|.
+--- - luanil: (table) Table with keys:
+--- - object: (boolean) When true, converts `null` in JSON objects
+--- to Lua `nil` instead of |vim.NIL|.
+--- - array: (boolean) When true, converts `null` in JSON arrays
+--- to Lua `nil` instead of |vim.NIL|.
---@return any
function vim.json.decode(str, opts) end
--- Encodes (or "packs") Lua object {obj} as JSON in a Lua string.
---@param obj any
---@param opts? table<string,any> Options table with keys:
---- - escape_slash: (boolean) (default false) When true, escapes `/`
---- character in JSON strings
+--- - escape_slash: (boolean) (default false) Escape slash
+--- characters "/" in string values.
---@return string
function vim.json.encode(obj, opts) end