fromJSON

From Bohemia Interactive Community
Revision as of 16:09, 8 October 2024 by Lou Montana (talk | contribs) (Text replacement - "↵|version1= 2.18↵↵|branch= dev↵" to " |version1= 2.18 ")
(diff) ← Older revision | Latest revision (diff) | Newer revision → (diff)
Jump to navigation Jump to search
Hover & click on the images for description

Description

Description:
Obtain the game value from the provided JSON-formatted string.
Groups:
Strings

Syntax

Syntax:
fromJSON jsonValue
Parameters:
jsonValue: String - JSON data
Return Value:
Can be one of:

Examples

Example 1:
private _myNumber = fromJSON "42"; // _myNumber is 42 private _myString = fromJSON """Hello there"""; // _myString is "Hello there" private _myArray = fromJSON "[42, ""Hello there"", true]"; // _myArray is [42, "Hello there", true]

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