Hi devs!
What is the best way to return JSON in IRIS for a GET request in a REST app?
This is how I do it now:
ClassMethodAs%Stream.ObjectThe query is used vs the following persistent class:
%PersistentAsWhat I don't like:
1. "Unnecessary" "manual" writes of "[]":
2. Code block repeat for the first segment to excuse "," :
3. I should introduce an "artificial" PersonId to make the response include record ID's (thanks to @Robert Cemper):
%IntegerYour ideas?

.png)
.png)
.png)
