User Manual

06.26.2025

MANUAL

Developer Function: Server Script: $ps.JSON.parse

## Overview Deserializes a json string serialized in the "[Server Script](/en/manual/table-management-server-script)" into an object that can be used in the server script. ## Syntax ``` $ps.JSON.parse(text) ``` ## Parameters |Parameter|Type|Required|Description| |:----------|:----------|:---:|:---------------------------| |text|string|Yes|json string| ## Return value Returns the deserialized object. ## Usage example In the following example, a json string is deserialized into a json object and output to the console. ##### JavaScript ``` const json = $ps.JSON.parse('{ "x": 5, "y": 6 }'); context.Log(`json.x=${json.x}`); context.Log(`json.y=${json.y}`); ``` ##### Example output ``` json.x=5 json.y=6 ``` ## Supported Versions |Supported versions|Body| |:--|:--| |1.4.12.0 and later|Added function| ## Related Information <div id="ManualList"><ul><li><a href="/en/manual/table-management-server-script">Table Management: Server Script</a><span>08.13.2024 up</span></li></ul></article></div><input id="SearchTextHidden" type="hidden" value="" />
code VS Codeで開発作業をもっとスマートに

スクリプト開発の効率を高めたい方に、Code Assistをご用意しています。

Code Assistの詳細はこちら →
account_tree 複雑な構成も、すっきり視覚化

サイト構成やデータのつながりを可視化し、把握しやすくします。

Site Visualizerの詳細はこちら →
TOP