toJSON: Difference between revisions
Jump to navigation
Jump to search
Lou Montana (talk | contribs) (Page creation) |
Lou Montana (talk | contribs) m (Fix example) |
||
Line 37: | Line 37: | ||
_hashMap set ["nKey", 42]; | _hashMap set ["nKey", 42]; | ||
_hashMap set ["hKey", ["key1", "key2", "yolo"] createHashMapFromArray ["General Kenobi", true, "Hello it's me"]]; | _hashMap set ["hKey", ["key1", "key2", "yolo"] createHashMapFromArray ["General Kenobi", true, "Hello it's me"]]; | ||
toJSON _hashMap; | |||
</sqf> | </sqf> | ||
result: | result: |
Revision as of 17:21, 29 July 2024
Description
Syntax
Examples
- Example 1:
-
result:
["this","is","an","array"]
- Example 2:
result:
{"bKey":true,"sKey":"Hello there","oKey":null,"nkey":42,hKey:{"key1":"General Kenobi","key2":true,"yolo":"Hello it's me"}}
- Example 4:
Additional Information
Notes
-
Report bugs on the Feedback Tracker and/or discuss them on the Arma Discord or on the Forums.
Only post proven facts here! Add Note