Many code snippets exist for ObjectScript already. You can learn how they work in the VS Code docs here.  And if you're comfortable reading JSON, you can then go and see what's already implemented in the ObjectScript extension in this JSON file. If you don't find what you're looking for, I hope you'll consider building some of your favorites and submitting a pull request!

Thanks all. I was using solution #1 from @Eduard Lebedyuk -- creating a new %RegisteredObject class to hold the response -- because it gives me good control over what is happening while keeping my code easy to understand. The solution using the `%ZEN.Auxiliary.altJSONProvider` class is interesting to keep in mind, but it outputs the class name as a "_class" key , which I don't want, and relying on the old %Zen class library isn't recommended in new solutions.

The answer from @Muni Ganesh works too, but I wanted to do something more elegant than the  "brute force"  approach (but that offers complete control over the process). 

@Max Abrahams you offer an interesting solution too. When I have an opportunity I'll have to try out that SQL-centric approach.