Dear Bram and Vimmers, I have read the below thread.
[vim] jsonencode() does not work correctly with function references (#579) https://groups.google.com/forum/#!msg/vim_dev/9rf5_YmPn28/qZKB3rKvCAAJ But, I couldn't understand why Vim has had to add v:none variable. > Although a missing item in an array is not according to the JSON > standard, it is very useful in practice: I don't think so. If v:none variable has been added because *only* it is useful, it should not be. I don't think It should be added even breaking the JSON standard. Because, v:none and v:null is very similar. If a user mistake v:none for v:null, an invalid JSON (for strict JSON parser) will be generated! jsonencode([1,v:none,v:none,4]) "undefined" and "null" in JavaScript is totally a bad part. Please don't follow that. Best wishes, tyru -- -- 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.
