Tất cả Tool›Định dạng JSON
Công cụ lập trình

Định dạng JSON

json-formatter

Use JSON Formatter & Validator through the Zavilo SDK. Check input limits, parameters, output and supported modes below.

H · HeadlessE · Embedded
Tool IDjson-formatter
Version1
ExecutionCLIENT
WorkloadSTANDARD
ModesHeadless, Embedded

Quick actions

Input files 0Output files 0

Đầu vào

Accepted input contract for this Tool.

Kinddata
File count0 – 0
Accepted MIME typesKhông có

Tham số

Pass these values through request.options.

Parameter Type Bắt buộc Mặc định Giá trị / Phạm vi Mô tả
input string Required — — JSON source text.
action enum Optional format format | minify | validate Format, minify or validate JSON.

Đầu ra

Result contract returned after successful processing.

Typedata
File count0 – 0
MIME typesKhông có
Metadataaction, valid
ZIP archiveNo

Ví dụ cơ bản

Choose a supported integration mode and copy the generated starter code.

Headless

const result = await client.run("json-formatter", {
  
  options: { input: "value", action: "format" }
});
console.log(result.files, result.data, result.metadata);

Embedded

await client.mount({ tool: "json-formatter", target: "#zavilo-tool", mode: "embedded" });
This page is generated from the SDK Tool Definition used by the runtime.