]> granicus.if.org Git - vim/commit
patch 8.0.1391: encoding empty string to JSON sometimes gives "null" v8.0.1391
authorBram Moolenaar <Bram@vim.org>
Fri, 15 Dec 2017 20:25:01 +0000 (21:25 +0100)
committerBram Moolenaar <Bram@vim.org>
Fri, 15 Dec 2017 20:25:01 +0000 (21:25 +0100)
commitb29d328eb403a243431f4d0d5b360b4ac46bbc3e
tree9f854ad29aa20a0375794c6189e997d4eb08d2fb
parent4697399e8c805325009351a2488e3da530d0af38
patch 8.0.1391: encoding empty string to JSON sometimes gives "null"

Problem:    Encoding empty string to JSON sometimes gives "null".
Solution:   Handle NULL string as empty string. (closes #2446)
src/json.c
src/testdir/test_json.vim
src/version.c