NEW6.00.04 · Released 16 July 2026
NEWfinPOWER Connect
Released in
6.00.04
16 July 2026
- Opened8 May
- Closed8 May
- Released16 Jul
Article 22566
Job J036889
Business Layer; ISWebUtilities; new SerialiseObjectToJsonStringForInlineScript method
A new SerialiseObjectToJsonStringForInlineScript method has been added to ISWebUtilities (finBL.Runtime.WebUtilities).
This is a safety wrapper around the existing SerialiseObjectToJsonString method, intended for use when emitting JSON inside an inline HTML <script> block (for example, a <script type="application/json"> payload baked into a rendered page).
After serialising, any </ sequence in the resulting JSON is escaped to <\/. This is a no-op on parse (both forms produce /) but ensures a serialised String value containing </script> (or any other </-prefixed sequence) cannot prematurely close the host script block.
When to use:
- Use
SerialiseObjectToJsonStringForInlineScriptonly when the JSON output will be embedded directly into an inline<script>block. - For all other contexts (AJAX responses, file storage, web service payloads, log data), continue to use
SerialiseObjectToJsonString. The existing method is unchanged.