--- title: "FromJson" ---
This is generated from the built in components of Otter 2024.0, and may be different than what you have installed (especially if you have extensions); go to [Gear Icon] -> Administration -> Functions within your Otter instance to see exactly what operations are available.

Converts JSON to an OtterScript value.

Script usage:

FromJson(json)

Parameters:

NameDescription
jsonThe JSON data to parse.

Example:

%FromJson(>>{"abc":[1,2,3],"def":true}>>)

@FromJson(>>[1,2,3,4,"five",6,7,8,9]>>)

$FromJson(>>"abc\n123">>)