Function Json.opOpAssign
Performs binary operations between JSON values.
void opOpAssign(string op)
(
Json other
)
if (op == "+" || op == "-" || op == "*" || op == "/" || op == "%" || op == "~");
void opOpAssign(string op, T)
(
T other
)
if (!is(T == Json) && is(typeof(Json(other))));
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