IMPORTANT: No additional bug fixes or documentation updates
will be released for this version. For the latest information, see the
current release documentation.
EverythingToJSONSerializer
edit
IMPORTANT: This documentation is no longer updated. Refer to Elastic's version policy and the latest documentation.
EverythingToJSONSerializer
editSerialize()
editThe EverythingToJSONSerializer
tries to convert everything to JSON.
If the data provided was an empty array, the serializer manually converts the
JSON from an empty array ([]
) to an empty object ({}
) so that it is valid
JSON for Elasticsearch request bodies.
If the data was not an array and/or not convertible to JSON, the method returns
null
.
Deserialize()
editWhen decoding the response body, everything is decoded to JSON from JSON. If
the data is not valid JSON, null
will be returned.
On this page
Was this helpful?
Thank you for your feedback.