Function Json.opBinary
Performs binary operations between JSON values.
Json opBinary(string op)
(
ref const(Json) other
) const @trusted;
Json opBinary(string op)
(
Json other
) @trusted
if (op == "~");
Json opBinary(string op)
(
bool other
) const;
Json opBinary(string op)
(
long other
) const @trusted;
Json opBinary(string op)
(
BigInt other
) const @trusted;
Json opBinary(string op)
(
double other
) const;
Json opBinary(string op)
(
string other
) const @trusted;
Json opBinary(string op)
(
Json[] other
) @trusted;
The two JSON values must be of the same run time type or a JSONException will be thrown. Only the operations listed are allowed for each of the types.
- Null
- none
- Bool
- &&, ||
- Int
- +, -, *, /, %
- Float
- +, -, *, /, %
- String
- ~
- Array
- ~
- Object
- in