For the complete documentation index, see llms.txt. This page is also available as Markdown.

JsonFormat

⚠️ Not type methods. These are functions of the json package: use json.parse(), json.stringify(), json.format(), json.clean().

Description

Converts A JS object or JSON string into a formatted JSON string

Parameters

JsonFormat takes no parameters

Usage On Arrays/Objects

arr = ["wow","crazy"]
// setup the array

log arr.JsonFormat()
// returns string 
// [
//   "wow",
//   "crazy"
// ]

Last updated