Installation and Getting Started Guide

Installation and Getting Started Guide

Formatting the JSON Response

Formatting the JSON Response

When you configure a function call to the engine, you can include one or more options in the call to determine the format of engine response.
Append the options as a query string segment at the end of the URI. If you do not append an option to the URI, the engine uses the default value for the option.
The following URI includes a range of formatting options:
AV/v1/Jobs/.../Value/IO/Outputs?HideDefault=true&Format=Smart&MaxLineLength=120&Indent=Spaces&IndentWidth=4&OpenBraceOnSameLine=true&EscapeSolidus=false&CompactEscape=true&Newline=CrLf&BOM=false
The URI options that you can add closely match the options in the InputJSONFormat group that you can set in the IDVEConfig.json file. The InputJSONFormat options determine the format of the JSON that the engine can write to the error logs.
To read a description of the formatting options, see the InputJSONFormat group table under Core Elements in IDVEConfig.json

0 COMMENTS

We’d like to hear from you!