Framework v2.x

serialize #

Serializes the KuzzleRequest object into a pair of POJOs that can be sent across the network, and then used to rebuild another equivalent KuzzleRequest object.

Arguments #

Copied to clipboard!
serialize(): { data: JSONObject, options: JSONObject };

Example #

Copied to clipboard!
const { data, options } = request.serialize();
const otherRequest = new KuzzleRequest(data, options);