-{ "nummsgs": <?READLOOP:TOTALMSGS>,
-"startmsg": <?READLOOP:STARTMSG>,
-"roomname": "<?ROOMNAME>",
-"msgs": [ <?ITERATE("MAIL:SUMM:MSGS","mailsummary_json_section")> ]
-}
\ No newline at end of file
+{ "nummsgs": <?BSTR("__READLOOP:TOTALMSGS")>,
+"startmsg": <?BSTR("__READLOOP:STARTMSG")>,
+"roomname": "<?THISROOM:NAME("J")>",
+"msgs": [ <?ITERATE("MAIL:SUMM:MSGS", ="mailsummary_json_section",
+B("startmsg"), 0, B("stopmsg"))> ]
+}