public
serialize(mixed $data): string
Serialize a complex data-structure into a json encoded string
The data to encode
OpenSearch\Serializers\ArrayToJSONSerializer::serialize()
OpenSearch\Serializers\SmartSerializer::serialize()
OpenSearch\Serializers\EverythingToJSONSerializer::serialize()
deserialize(string $data, array $headers): string|array
Deserialize json encoded string into an associative array
JSON encoded string
Response Headers
OpenSearch\Serializers\ArrayToJSONSerializer::deserialize()
OpenSearch\Serializers\SmartSerializer::deserialize()
OpenSearch\Serializers\EverythingToJSONSerializer::deserialize()