NEW3.04.03 · Released 1 February 2022
NEWfinPOWER Connect
Released in
3.04.03
1 February 2022
- Opened20 Dec 2021
- Closed20 Dec 2021
- Released1 Feb
Article 18908
Job J028073
Business Layer; JsonIndent and JsonIndentHtml Functions added to ISTextUtilities
The following Functions have been added to ISTextUtilities:
- JsonIndent(rawJson)
- JsonIndentHtml(rawJson, fontFamilyName)
They allow raw JSON text to be formatted, including line breaks, and indenting. JsonIndent allows for a simple text format, whereas JsonIndentHtml also adds HTML information to be displayed in a web page. This optionally accepts a fontFamilyName Parameter, which can be retrieved from ISControlHandler (when available). E.g.:
ISControlHandler.Fonts(iseUiFont.ScriptCode).FontFamily.Name
The standard system now uses these Functions in the Service Log form and HTML Widget (when viewing Request / Response information where JSON has been used).