nvim_runtime_lua

vim.json.encode.Opts

@inlinedoc

Fields3

Opts.escape_slash : nil | boolean

Escape slash characters "/" in string values. (default: false)

Opts.indent : nil | string

If non-empty, each value in a JSON object or array starts on a new line and is prefixed with indent per nesting level. Adds a space after colons. Does not add a final newline. (default: "")

Opts.sort_keys : nil | boolean

Sort object keys in alphabetical order. (default: false)