User bio
404 bio not found
Member since Jun 8, 2016
Posts:
Replies:
So the one-line non-deprecated way would be:
Set sc=person.%JSONExportToString(.json), dynObj = {}.%FromJSON(json)
// or if we have long objects
Set sc=person.%JSONExportToStream(.json), dynObj = {}.%FromJSON(json)
But I agree it would be nicer to have just one command!, like the one that @Laura Blázquez García pointed out.
Good catch! I tried to keep it short, but it was too vague—my bad! Thanks for pointing it out! 😄 (I edited the article with your comments) . Thanks!
Open Exchange applications:
Certifications & Credly badges:
Mario has no Certifications & Credly badges yet.
Global Masters badges:







Followers:
Following:
If you use IRIS, the easiest and cleanest way to interact with AWS S3 is by using embedded Python and the boto3 library, which is the official AWS SDK for Python.
IRIS allows you to write class methods with Language = python, so you can write pure Python inside your ObjectScript classes. Here’s a simple example of listing objects in an S3 bucket:
To call this method from ObjectScript:
Just make sure the Python environment IRIS is using has boto3 installed:
If you’re working with Ensemble, which doesn’t support embedded Python, you can still achieve the same result by calling a Python script externally using $ZF(-1):
This way, you can keep the S3 logic in a Python script and still integrate it with Ensemble.