# JSON

### JSON Stringify

Serializes arbitrary data to a *JSON* format.

#### Expression:

**JSON\_STRINGIFY**(*data*: any, *spaces*?: number)

#### Return:

*JSON\_format*: string

#### Example of usage:

```javascript
JSON_STRINGIFY([{name: "name"}, {age: "39"}], 1)

Return value:
"[\n {\n  \"name\": \"name\"\n },\n {\n  \"age\": \"39\"\n }\n]"
```

### JSON Parse

Parses a string as a *JSON* into data.

#### Expression:

**JSON\_PARSE**(string)

#### Return:

*JSON\_parse*: string

#### Example of usage:

```javascript
JSON_PARSE("[{\"name\":\"name\"},{\"age\":\"39\"}]")

Return value:
[{"name":"name"},{"age":"39"}]
```

### Is Valid JSON

Returns a boolean type if a *JSON* string is valid.

#### Expression:

**JSON\_ISVALID**(string)

#### Return:

boolean

#### Example of usage:

```javascript
 JSON_ISVALID("[{\"name\": \"name\"}, {\"age\": \"39\"}]")
 
 Return value:
 true
```
