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

JsonClean

⚠️ 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 cleaned JSON string. This is used to format and clean any invalid syntax from downloaded json data so that osl can handle the json easier.

Parameters

JsonClean takes no parameters

Usage On Arrays/Objects

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

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

Last updated