1
0
forked from aniani/vim

patch 8.0.0171: JS style JSON does not support single quotes

Problem:    JS style JSON does not support single quotes.
Solution:   Allow for single quotes. (Yasuhiro Matsumoto, closes #1371)
This commit is contained in:
Bram Moolenaar
2017-01-11 21:50:08 +01:00
parent e32abbe42c
commit ee142add22
5 changed files with 26 additions and 7 deletions

View File

@@ -5229,6 +5229,7 @@ join({list} [, {sep}]) *join()*
js_decode({string}) *js_decode()*
This is similar to |json_decode()| with these differences:
- Object key names do not have to be in quotes.
- Strings can be in single quotes.
- Empty items in an array (between two commas) are allowed and
result in v:none items.