We read every piece of feedback, and take your input very seriously.
To see all available qualifiers, see our documentation.
1 parent 5ceaded commit b7e8923Copy full SHA for b7e8923
1 file changed
autoload/webapi/json.vim
@@ -73,7 +73,7 @@ function! webapi#json#decode(json)
73
\ '\%(^\|:\|,\)\%(\s*\[\)\+', '', 'g') !~ '^[\],:{} \t\n]*$'
74
throw json
75
endif
76
- let json = substitute(json, '\n', '', 'g')
+ let json = join(split(json, "\n"), "")
77
let json = substitute(json, '\\x22\|\\u0022', '\\"', 'g')
78
if v:version >= 703 && has('patch780')
79
let json = substitute(json, '\\u\(\x\x\x\x\)', '\=iconv(nr2char(str2nr(submatch(1), 16), 1), "utf-8", &encoding)', 'g')
0 commit comments