JSONValue.opIndexAssign - multiple declarations

Function JSONValue.opIndexAssign

Operator sets value for element of JSON object by key.

void opIndexAssign(T) (
  auto ref T value,
  string key
);

If JSON value is null, then operator initializes it with object and then sets value for it.

Throws

JSONException if type is not JSONType.object or JSONType.null_.

Example

JSONValue k > JSONValue( [

Function JSONValue.opIndexAssign

void opIndexAssign(T) (
  T arg,
  size_t i
);