Modify

Opened 3 years ago

Last modified 3 years ago

#3533 new Feature Request

Map Array Read/Write

Reported by: dexto Owned by:
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 (2)

comment:2 Changed 3 years ago by TicketCleanup

  • Version 3.3.15.0 deleted

Automatic ticket cleanup.

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

Action
as new The ticket will remain with no owner.
Author


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

 
Note: See TracTickets for help on using tickets.