Topics
All
MacOS
(Only)
Windows
(Only)
Linux
(Only, Not)
iOS
(Only, Not)
Components
Crossplatform Mac & Win
Server
Client
Old
Deprecated
Guides
Examples
Videos
New in version:
10.5
11.0
11.1
11.2
11.3
11.4
11.5
12.0
12.1
12.2
Statistic
FMM
Blog
JavaScript.SetPropertyJSON
Sets property value using JSON.
Component | Version | macOS | Windows | Linux | Server | iOS SDK | License |
JavaScriptMac | 12.2 | ✅ Yes | ❌ No | ❌ No | ✅ Yes, on macOS | ✅ Yes | Paid |
MBS( "JavaScript.SetPropertyJSON"; JavaScriptContext; PropertyName; JSONString ) More
Parameters
Parameter | Description | Example |
---|---|---|
JavaScriptContext | The reference number of the javascript context. | $Context |
PropertyName | The name of the property. | "FirstName" |
JSONString | The new value as JSON Text. | "{}" |
Result
Returns OK or error.
Description
Sets property value using JSON.Great way to move lots of data as JSON to the JavaScript environment.
Examples
Set property via JSON:
Set Variable [ $r ; Value: MBS("JavaScript.SetPropertyJSON"; $$Context; "test"; "{\"Hello\": \"World\"}") ]
See also
Release notes
- Version 12.2
- Added JavaScript.CallFunction, JavaScript.GetPropertyJSON and JavaScript.SetPropertyJSON functions.
Blog Entries
Created 3th May 2022, last changed 5th May 2022
JavaScript.SetProperty - Keychain.AddPassword
Feedback: Report problem or ask question.
