Opened 7 years ago

Last modified 4 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:


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 Changed 7 years ago by TicketCleanup

  • Version deleted

Automatic ticket cleanup.

comment:3 Changed 4 years ago by Jpm

  • Owner set to Jon
  • Status changed from new to assigned

perhaps Jon can answer it

Guidelines for posting comments:

  • You cannot re-open a ticket but you may still leave a comment if you have additional information to add.
  • In-depth discussions should take place on the forum.

For more information see the full version of the ticket guidelines here.

Add Comment

Modify Ticket

as assigned The owner will remain Jon.

E-mail address and user name can be saved in the Preferences.

Note: See TracTickets for help on using tickets.