--- title: "JSON Actions" slug: "json-actions" description: "This is a list of actions that can be used in RapidIdentity Connect to interact with .json files." tags: ["RapidIdentity ", "Connect", "Actions", "JSON"] updated: 2022-06-03T13:18:14Z published: 2022-06-03T13:18:14Z canonical: "help.rapididentity.com/json-actions" --- > ## Documentation Index > Fetch the complete documentation index at: https://help.rapididentity.com/llms.txt > Use this file to discover all available pages before exploring further. # JSON Actions ## JSON Actions ### parseJSON Parse JSON string. | Property | Value | Description | | --- | --- | --- | | json* | text, expression, variable | the JSON string to parse | | returnVariable | expression, variable | name of the variable to be assigned to the return value | ```actionscript jsonData = '{"name":"Test User","phone":"555-555-1234"}' parsedData = parseJSON(jsonData) log(parsedData['name']) log(parsedData['phone']) ``` ### toJSON Serialize Object, Record, Array, etc. as a JSON string. | Property | Value | Description | | --- | --- | --- | | item* | expression, variable | the Object, Record, Arrays, etc to serialize | | indent | boolean, expression, variable | format/indent JSON result | | returnVariable | expression, variable | name of the variable to be assigned to the return value | ```actionscript record = createRecord(false) record.name = "Test User" record.phone = "555-555-1234" log(record) # displays - {name=Test User, phone=555-555-1234} jsonStr = toJSON(record, false) log(jsonStr) # displays - {"name":"Test User","phone":"555-555-1234"} ```