patch 8.0.1602: crash in parsing JSON
Problem: Crash in parsing JSON.
Solution: Fail when using array or dict as dict key. (Damien)
diff --git a/src/testdir/test_json.vim b/src/testdir/test_json.vim
index acd2ea8..396651e 100644
--- a/src/testdir/test_json.vim
+++ b/src/testdir/test_json.vim
@@ -179,6 +179,9 @@
call assert_fails('call json_decode("[1 2]")', "E474:")
call assert_fails('call json_decode("[1,,2]")', "E474:")
+
+ call assert_fails('call json_decode("{{}:42}")', "E474:")
+ call assert_fails('call json_decode("{[]:42}")', "E474:")
endfunc
let s:jsl5 = '[7,,,]'