Zoomed Image

AMSX Scripting Language - Command : Serialize

Summary

Serialise a database table or object into XML, JSON, or AMSX text format

Description

Reads rows from the specified table, applies optional field selection and row filtering, then serialises the result to the chosen format. The serialised string is stored in the result buffer. Name-value pairs from argument 3 onward act as WHERE clause equality filters.

Parameters

ParameterDescription
cmdtable or object name to serialise
Argument 0output format: XML, JSON, or AMSX
Argument 1comma-separated list of field names to include, or blank for all fields
Argument 2true to omit fields with empty values from the output (default true)
Argument 3first filter field name, followed by its value, then further name/value pairs

Syntax


Serialize "table or object name to serialise", "output format: XML, JSON, or AMSX", "comma-separated list of field names to include, or blank for all fields", "true to omit fields with empty values from the output (default true)", "first filter field name, followed by its value, then further name/value pairs"

Return to the AMSX Command Reference