fromJSON: Difference between revisions
Jump to navigation
Jump to search
Lou Montana (talk | contribs) (Page creation) |
Lou Montana (talk | contribs) m (Text replacement - "↵|version1= 2.18↵↵|branch= dev↵" to " |version1= 2.18 ") |
||
(One intermediate revision by the same user not shown) | |||
Line 3: | Line 3: | ||
|game1= arma3 | |game1= arma3 | ||
|version1= 2.18 | |version1= 2.18 | ||
|gr1= Strings | |gr1= Strings | ||
Line 26: | Line 24: | ||
|x1= <sqf> | |x1= <sqf> | ||
private _myNumber = fromJSON "42"; // _myNumber is 42 | private _myNumber = fromJSON "42"; // _myNumber is 42 | ||
private _myString = fromJSON """Hello there"""; // | private _myString = fromJSON """Hello there"""; // _myString is "Hello there" | ||
private _myArray = fromJSON "[42, ""Hello there"", true]"; // _myArray is [42, "Hello there", true] | private _myArray = fromJSON "[42, ""Hello there"", true]"; // _myArray is [42, "Hello there", true] | ||
</sqf> | </sqf> |
Latest revision as of 16:09, 8 October 2024
Description
Syntax
Examples
- Example 1:
Additional Information
- See also:
- toJSON parseSimpleArray
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