User bio
404 bio not found
Member since Aug 15, 2017
Posts:
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)
// ordo##class(ISC.SE.Tools.JSON).GenerateClassesFromStream(jsonStream, "MyDataModel.JSONPackage", "ClassName", 0, 1)

// and then use that classSet mymessage = ##class(MyDataModel.JSONPackage.ClassName).%JSONImport(mysourcestringorstream)
Set mymessage.%Save()

// and it's SQL addressable

SELECT * FROM MyDataModel_JSONPackage.ClassName
Nicholai Mitchko · Mar 16, 2023 go to post

I use this tidbit to get an external ip

curl -s http://whatismyip.akamai.com/

If you want the docker-host ip and not the external ip, I use host networking and then use

hostname -I
Open Exchange applications:
Certifications & Credly badges:
Nicholai has no Certifications & Credly badges yet.
Followers:
Nicholai has no followers yet.
Following:
Nicholai has not followed anybody yet.