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="" />
TOP
このページをシェアする
記載された商品名、各製品名は各社の登録商標または商標です。 © Implem Inc.