summaryrefslogtreecommitdiff
path: root/libphobos/src/std/json.d
diff options
context:
space:
mode:
Diffstat (limited to 'libphobos/src/std/json.d')
-rw-r--r--libphobos/src/std/json.d6
1 files changed, 3 insertions, 3 deletions
diff --git a/libphobos/src/std/json.d b/libphobos/src/std/json.d
index ea22d635766..89def0f02f5 100644
--- a/libphobos/src/std/json.d
+++ b/libphobos/src/std/json.d
@@ -19,7 +19,7 @@ module std.json;
import std.array;
import std.conv;
-import std.range.primitives;
+import std.range;
import std.traits;
///
@@ -929,7 +929,7 @@ Params:
options = enable decoding string representations of NaN/Inf as float values
*/
JSONValue parseJSON(T)(T json, int maxDepth = -1, JSONOptions options = JSONOptions.none)
-if (isInputRange!T && !isInfinite!T && isSomeChar!(ElementEncodingType!T))
+if (isSomeFiniteCharInputRange!T)
{
import std.ascii : isDigit, isHexDigit, toUpper, toLower;
import std.typecons : Nullable, Yes;
@@ -1437,7 +1437,7 @@ Params:
options = enable decoding string representations of NaN/Inf as float values
*/
JSONValue parseJSON(T)(T json, JSONOptions options)
-if (isInputRange!T && !isInfinite!T && isSomeChar!(ElementEncodingType!T))
+if (isSomeFiniteCharInputRange!T)
{
return parseJSON!T(json, -1, options);
}