Question Raj Singh · Mar 1, 2023 ObjectScript ListOfObjects to 2D Python array My general question is how to convert to a %Library.ListOfObjects to a Python "array-like" structure for use in Matplotlib. Specifically, I have a Line Object which is comprised of a list of Points (see classes below). I want to pass the line to Python to create a Matplotlib Path. #Embedded Python #Key Question #InterSystems IRIS 2 13 0 436
Question Raj Singh · Jun 9, 2020 Creating JSON objects from ObjectScript objects Say I have an ObjectScript object called Book. It has 2 properties title and author. It extends JSON.%Adaptor, so I can call book.%JSONExport() and get this output: { "title": "For Whom the Bell Tolls", "author": "Hemmingway" } In my web service I want to have a search function that returns an array of Books along with the total number of responses, like this: #JSON #ObjectScript #InterSystems IRIS #InterSystems IRIS for Health 0 13 0 1.6K