Yukihiro Nakadaira wrote:
> :echo jsondecode('{"":"x"}')
> E713: Cannot use empty key for Dictionary
>
> Will Vim allow empty key?
Hmm, if you take the standard literally I suppose it allows for an empty
key. In practice it's an indication something went wrong.
Why are you asking, do you see a practical application for it?
The standard also allows for duplicate names, even though in practice
that doesn't work. So even though it's valid JSON, it doesn't mean it's
a valid value after converting from JSON to Vim types.
So the error is actually correct, it's not saying the JSON is invalid,
it's saying the result in Vim types is invalid.
--
hundred-and-one symptoms of being an internet addict:
40. You tell the cab driver you live at
http://123.elm.street/house/bluetrim.html
41. You actually try that 123.elm.street address.
/// Bram Moolenaar -- [email protected] -- http://www.Moolenaar.net \\\
/// sponsor Vim, vote for features -- http://www.Vim.org/sponsor/ \\\
\\\ an exciting new programming language -- http://www.Zimbu.org ///
\\\ help me help AIDS victims -- http://ICCF-Holland.org ///
--
--
You received this message from the "vim_dev" maillist.
Do not top-post! Type your reply below the text you are replying to.
For more information, visit http://www.vim.org/maillist.php
---
You received this message because you are subscribed to the Google Groups
"vim_dev" group.
To unsubscribe from this group and stop receiving emails from it, send an email
to [email protected].
For more options, visit https://groups.google.com/d/optout.