Method Bson.opDispatch

Allows to access existing fields of a JSON object using dot syntax.

Returns a null value for non-existent fields.

Prototypes

inout(Bson) opDispatch(string prop)()() inout;

void opDispatch(string prop, T)(T val)(
  ReturnTypeString.T val
);

Authors

Sönke Ludwig

Copyright

© 2012 RejectedSoftware e.K.

License

Subject to the terms of the MIT license, as written in the included LICENSE.txt file.