To complete my expertise in data storage, I joined the editor Oracle, before joining InterSystems in 2001.
My skills in data processing have therefore been extended, from multi-model storage, interoperability (and more particularly on health exchange standards), to real-time analysis and artificial intelligence (AI / ML), so as to cover a broad spectrum of the data lifecycle in all industries.
Pour compléter mon expertise en stockage de données, j'ai ensuite intégré l'éditeur Oracle, avant de rejoindre InterSystems France dès 2001.
Mes compétences en traitement de la donnée se sont dès lors étendues, depuis le stockage multi-modèles, l'interopérabilité (et plus particulièrement sur les standards d'échanges en santé), jusqu'à l'analyse en temps-réel et à l'intelligence artificielle (IA/ML), de manière à couvrir un large spectre du cycle de vie de la donnée.
Thank you Ron ; that’s helpful
Thanks to @Vitaliy Serdtsev : it is also possible to directly retrieve JSON from an SQL query, with the functionsJSON_ARRAYAGG and JSON_OBJECT :
SELECT JSON_ARRAYAGG(json_obj)
FROM (SELECT TOP 5
JSON_OBJECT(
'Name':name
,'Age':age
,'DOB':to_char(dob,'Day DD Month YYYY')
) json_obj
FROM sample.person
)
SELECT JSON_ARRAYAGG(json_obj)
FROM (SELECT JSON_OBJECT(
'Name':name
,'Age':age
,'DOB':to_char(dob,'Day DD Month YYYY')
) json_obj
FROM sample.person
)
WHERE %VID BETWEEN 1 AND 5
Result :
Thanks @Alberto Fuentes
I suggest to keep information regarding the classname of the message and its ID :
Method %ShowContents(pZenOutput As %Boolean = 0) { do ..%JSONExportToString(.jsonExport) set formatter = ##class(%JSON.Formatter).%New() do formatter.FormatToString(jsonExport, .json) &html< <i style="color:green;">type: #($classname())# id: #(..%Id())# </i> <pre>#(json)#</pre> > }
in order to get :