Question
· May 3, 2022

Resultset to JSON

Hi Guys,

How do I convert a Query resultset to JSON file ?

 

Thanks

Product version: Ensemble 2014.1
Discussion (4)1
Log in or sign up to continue

See %ZEN.Auxiliary.jsonSQLProvider:%WriteJSONStreamFromSQL()

 
Simple example

The contents of the file test.json (UTF8):

{
"children":[
{"ID":1,"Date":"04.05.2022","bool":0,"int":30,"str":"Hello Caché"}
,{"ID":2,"Date":"31.12.1840","bool":1,"int":303,"str":"ăîşţâ"}
,{"ID":3,"Date":"","bool":"","int":"","str":""}
]
}