Home Applications sqljsonadaptor

sqljsonadaptor Works

InterSystems does not provide technical support for this project. Please contact its developer for the technical assistance.
5
1 reviews
0
Awards
54
Views
6
IPM installs
0
0
Details
Releases (2)
Reviews (1)
Issues
Articles (1)
Makes %JSON.Adaptor methods accessible via SQL.

What's new in this version

Return types for the methods have been corrected.

sqljsonadaptor

This class extends the %JSON.Adaptor class. It adds two SqlProc methods that allow return the same results as the original adaptor’s %JSONExportToStream and %JSONExportToString methods view SQL.

Classes that extend this class will be able to run an SQL query as follows:

select mytable_jsonstring(id,mapname) from mytable

where mytable is the table’s name, id is the row’s ID, and mapname is the name of a map defined for the %JSON.Adaptor (optional) and that will return a column containing the same contents you would expect from the %JSONExportToString method. The same is true for mytable_jsonstream if a stream is preferred.

Installation

This class is available via IPM.

install sqljsonadaptor

Made with
Install
zpm install sqljsonadaptor download archive
Version
1.0.111 May, 2026
Ideas portal
https://ideas.intersystems.com/ideas/DPI-I-721
Category
Integration
Works with
InterSystems IRIS
First published
25 Feb, 2026
Last edited
11 May, 2026
Last checked by moderator
09 Mar, 2026Works