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: 11.3   11.4   11.5   12.0   12.1   12.2   12.3   12.4   12.5   13.0    Statistic    FMM    Blog  


Sets property value using JSON.

Component Version macOS Windows Linux Server iOS SDK
JavaScriptMac 12.2 ✅ Yes ❌ No ❌ No ✅ Yes, on macOS ✅ Yes
MBS( "JavaScript.SetPropertyJSON"; JavaScriptContext; PropertyName; JSONString )   More


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. "{}"


Returns OK or error.


Sets property value using JSON.
Great way to move lots of data as JSON to the JavaScript environment.


Set property via JSON:

Set Variable [ $r ; Value: MBS("JavaScript.SetPropertyJSON"; $$Context; "test"; "{\"Hello\": \"World\"}") ]

See also

Release notes

Blog Entries

Created 3th May 2022, last changed 5th May 2022

JavaScript.SetProperty - Keychain.AddPassword

Feedback: Report problem or ask question.

Start Chat