Beautify

This is pre-built Action located under the @Generic Element, instructs the Avo Assure to Beautify the content, means it will fix the alignment of file or Input text of provided file and save the result in the dynamic variable.

Syntax

Input Value: <Filepath/Input Text>;<xml/json>

Argument
Description

<Filepath/Input Text>

(Required)

Provide the file path containing XML or JSON content, or directly enter the raw string in the Input Value to beautify it.

<xml/json> (Required)

The type of data you want to beautify. – Acceptable values are: • xml – if the input is XML format • json – if the input is JSON format

Output Value:

Argument
Description

<Dynamic Variable> (Required)

This variable stores the beautified string

<Dynamic Variable> (Optional)

This variable stores the status as true or false

Example

Beautify the given XML or JSON content The Beautify action takes the value from the Input Value column (e.g., {"name":"Alice","age":30,"email":"[email protected]"};json) and formats the given content based on its type (XML or JSON). The beautified output is stored in the {Beautified} variable, and the action status is saved in the {Status} variable with the following possible values:

  • True – if the content is beautified successfully

  • False – if the content is not beautified

Last updated

Was this helpful?