Home Manual Reference Source Test Repository
public class | source

FormatJSON

Provides a format transform for ESComplex report instances converting them to a JSON string.

Member Summary

Public Members
public get

Gets the file extension.

public get

Gets the format name.

public get

Gets the format type.

Method Summary

Public Methods
public

Formats a report as a JSON string.

public

Returns whether a given ReportType is supported by this format transform.

Public Members

public get extension: string: string source

Gets the file extension.

Return:

string

public get name: string: string source

Gets the format name.

Return:

string

public get type: string: string source

Gets the format type.

Return:

string

Public Methods

public formatReport(report: ClassReport | MethodReport | ModuleReport | ProjectReport, options: object): string source

Formats a report as a JSON string.

Params:

NameTypeAttributeDescription
report ClassReport | MethodReport | ModuleReport | ProjectReport

A report to format.

options object

(Optional) One or more optional parameters passed to the formatter.

Return:

string

Return Properties:

NameTypeAttributeDescription
spacing number

(Optional) An integer defining the JSON output spacing.

public isSupported(): boolean source

Returns whether a given ReportType is supported by this format transform.

Return:

boolean