serialize
| Arg | Description | Type |
|---|---|---|
| item | The item to encode | Any (required) |
| format | Encoding format (csv,json,yaml,hex,base64) | string |
Description
Encode an object as a string.
Several serialization formats are supported. The default format, if not specified, is “json”.
Notes
This function is often useful when you need to pass a data structure to an artifact parameter when the parameter expects a specific format. For example:
SELECT * FROM Artifact.Linux.Search.FileFinder(
SearchFilesGlobTable=serialize(format="csv",item=tlist),...)will pass a list in CSV format to the artifact’s
SearchFilesGlobTable parameter.
See also
- str: Returns the string representation of the provided data.