I have an IRIS persistent class with a %Stream property whose value is a JSON object. I'd like to use a SQL trigger to pull some value out of the JSON and persist it in another property, for easy querying and indexing. See below for a minimal example:
Class PAB.DebugStream Extends %Persistent
{
Property Contents As %Stream.GlobalCharacter;
Property msg As %String;
ClassMethod InsertRow()
{
set stream = ##class(%Stream.GlobalCharacter).%New()
$$$ThrowOnError(stream.Write({"msg":"hello world!"}))
&sql(insert into PAB.