Method Json.opApply

Allows foreach iterating over JSON objects and arrays.

Prototypes

int opApply(
  int delegate(ref Json obj) del
);

int opApply(
  int delegate(ref const(Json) obj) del
) const;

int opApply(
  int delegate(ref uint idx, ref Json obj) del
);

int opApply(
  int delegate(ref uint idx, ref const(Json) obj) del
) const;

int opApply(
  int delegate(ref string idx, ref Json obj) del
);

int opApply(
  int delegate(ref string idx, ref const(Json) obj) del
) const;

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.