Modify

Opened 9 years ago

Last modified 6 years ago

#3533 assigned Feature Request

Map Array Read/Write

Reported by: dexto Owned by: Jon
Milestone: Component: AutoIt
Version: Severity: None
Keywords: map, array Cc:

Description

Can this be made possible? Arrays are a pain when used with a map.

Local $json[]
Local $map[]
$map['test'] = 'hello'
Local $array[5] = [1, 2, 3, 4, 5]
$json["data"] = $map
$json["data"]["arr"] = $array
ConsoleWrite($json["data"]["arr"][0] & @CRLF)
$json["data"]["arr"][0] = 9
ConsoleWrite($json["data"]["arr"][0] & @CRLF)

Ideally this would be possible:

Local $json[]
$json["data"]['test'] = 'hello'
$json["data"]["arr"] = [1, 2, 3, 4, 5]
$json["data"]["arr"][0] = 9
ConsoleWrite($json["data"]["arr"][0] & @CRLF)

Attachments (0)

Change History (3)

comment:2 by TicketCleanup, 9 years ago

Version: 3.3.15.0

Automatic ticket cleanup.

comment:3 by J-Paul Mesnage, 6 years ago

Owner: set to Jon
Status: newassigned

perhaps Jon can answer it

Modify Ticket

Action
as assigned The owner will remain Jon.

Add Comment


E-mail address and name can be saved in the Preferences .
 
Note: See TracTickets for help on using tickets.