> For the complete documentation index, see [llms.txt](https://osl.mistium.com/llms.txt). Markdown versions of documentation pages are available by appending `.md` to page URLs; this page is available as [Markdown](https://osl.mistium.com/legacy-osl-originos/prototype-helpers/.jsonclean.md).

# JsonClean

> ⚠️ **Not type methods.** These are functions of the [`json` package](/packages/data/json.md): 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

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

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