-{ "nummsgs": <?READLOOP:TOTALMSGS>,
-"startmsg": <?READLOOP:STARTMSG>,
-"roomname": "<?ROOMNAME>",
-"msgs": [ <?ITERATE("MAIL:SUMM:MSGS", "mailsummary_json_section", 0, B("startmsg"), B("maxmsgs"))> ]
+{ "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"))> ]
}