User bio
404 bio not found
Member since Aug 15, 2017
Replies:

A while back we created JSON2Persistent which does this for you in a consistent way without AI :)

do ##class(ISC.SE.Tools.JSON).GenerateClasses("path/to/sample.json", "MyDataModel.JSONPackage", "ClassName", 0, 1)
// or
do ##class(ISC.SE.Tools.JSON).GenerateClassesFromStream(jsonStream, "MyDataModel.JSONPackage", "ClassName", 0, 1)

// and then use that class

Set mymessage = ##class(MyDataModel.JSONPackage.ClassName).%JSONImport(mysourcestringorstream)
Set mymessage.%Save()

// and it's SQL addressable

SELECT * FROM MyDataModel_JSONPackage.ClassName
Open Exchange applications:
Certifications & Credly badges:
Nicholai has no Certifications & Credly badges yet.
Global Masters badges:
Nicholai has no Global Masters badges yet.
Followers:
Following: