ReceiveJSON

Receive a JSON object or array. Mixin template for transport implementations.

If your transport provides a receiveData function defined as char[] receiveData(); the receiveJSONObjectOrArray will call it and return the first complete JSON object or array from the char stream. Any trailing data is thrown away.

@safe
mixin template ReceiveJSON () {}

Members

Functions

receiveJSONObjectOrArray
char[] receiveJSONObjectOrArray()

Receive a single JSON object or array from the socket stream.

Meta