diff --git a/std/json.d b/std/json.d index 0289e6e7cea..0c436de9743 100644 --- a/std/json.d +++ b/std/json.d @@ -1176,7 +1176,7 @@ string toJSON(const ref JSONValue root, in bool pretty = false, in JSONOptions o // of UTF-16 surrogate characters, as per RFC 4627. wchar[2] wchars; // 1 or 2 UTF-16 code units size_t wNum = encode(wchars, c); // number of UTF-16 code units - foreach (wc; wchars[0..wNum]) + foreach (wc; wchars[0 .. wNum]) { json.put("\\u"); foreach_reverse (i; 0 .. 4)