Converts a list of business objects into a JSON string. Specified attributes of each list member are printed out.
LIST_TO_JSON_FUNCTION(Client.Children, 'ORDER BY Client.Name DESC', 'FirstName', 'LastName', 'Age', 'ID@My id', 'Date@Date@MMM dd yyyy')
This produces the following string:
{
"FirstName": "Jane",
"LastName" : "Allison",
"Age" : 15,
"My id" : "some value",
"Date": "Jan 2 2024"
},
{
"FirstName": "Bob",
"LastName" : "Fisk",
"Age" : 30,
"My id" : "some other value",
"Date": "Feb 12 2024"
}
...