patch 7.4.1448
Problem: JSON tests fail if 'encoding' is not utf-8.
Solution: Force encoding to utf-8.
diff --git a/src/testdir/test_json.vim b/src/testdir/test_json.vim
index 369bdde..83adcd6 100644
--- a/src/testdir/test_json.vim
+++ b/src/testdir/test_json.vim
@@ -1,5 +1,12 @@
" Test for JSON functions.
+
+" JSON requires using utf-8. Conversion breaks the asserts, therefore set
+" 'encoding' to utf-8.
+if !has('multi_byte')
+ finish
+endif
scriptencoding utf-8
+set encoding=utf-8
let s:json1 = '"str\"in\\g"'
let s:var1 = "str\"in\\g"