Just for the sake of variety, (and to advertise the flexiblity of IRIS) i might suggest another way to consider the problem might be to use a SQL query that projects the %Persistent objects into a document format without the need for a JSON adapter


or, to consider the %DocDB storage model which would get you this behavior "for free" by storing the %persistent objects natively in JSON format.