Table of Contents

TTMSFNCWXJSONFormatter Class

Renders JSON content as a collapsible, syntax-highlighted tree inside a hosted web view. Publishes the formatting, preview, animation, and appearance settings for design-time and run-time use.

API unit family: TMSFNCWXJSONFormatter Inherits from: TTMSFNCWXCustomJSONFormatter

Syntax

TTMSFNCWXJSONFormatter = class(TTMSFNCWXCustomJSONFormatter)

Remarks

Assign the JSON content, optionally choose a color scheme and the appearance colors, then let the control render the formatted output.

Properties

Name Description
AnimateClose Specifies whether collapsing a node is animated. (inherited from TTMSFNCWXCustomJSONFormatter)
AnimateOpen Specifies whether expanding a node is animated. (inherited from TTMSFNCWXCustomJSONFormatter)
Appearance Provides the colors and font applied when the custom color scheme is selected. (inherited from TTMSFNCWXCustomJSONFormatter)
HoverPreviewArrayCount Specifies the maximum number of array elements shown in a hover preview. (inherited from TTMSFNCWXCustomJSONFormatter)
HoverPreviewEnabled Specifies whether a preview of collapsed objects and arrays is shown when the pointer hovers over them. (inherited from TTMSFNCWXCustomJSONFormatter)
JSON Holds the JSON text that is rendered. Assigning new content re-renders the output. (inherited from TTMSFNCWXCustomJSONFormatter)
LibraryLocation Specifies whether the supporting library is loaded from an online source or from a local copy embedded with the application. (inherited from TTMSFNCWXCustomJSONFormatter)
OpenAtDepth Specifies the nesting depth up to which nodes are initially expanded. (inherited from TTMSFNCWXCustomJSONFormatter)
Theme Specifies the color scheme used to render the output. (inherited from TTMSFNCWXCustomJSONFormatter)
UseToJSON Specifies whether a value's own serialization method is used when rendering, instead of the raw value. (inherited from TTMSFNCWXCustomJSONFormatter)

Methods

Name Description
EndUpdate Ends an update block and re-renders the output once all nested update blocks have completed. (inherited from TTMSFNCWXCustomJSONFormatter)