.JsonClean()

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