Comparison of programming languages (associative array): Difference between revisions

Content deleted Content added
Windows PowerShell: copy editing
Line 2,013:
Many data serialization formats also support associative arrays (see [[Comparison of data serialization formats#Syntax comparison of human-readable formats|this table]])
 
=== [[JSON]] ===
In [[JSON]], associative arrays are also referred to as objects. Keys can only be strings.
 
<syntaxhighlight lang=JavaScript>
{
Line 2,023 ⟶ 2,024:
</syntaxhighlight>
 
=== [[YAML]] ===
[[YAML]] associative arrays are also called map elements or key-value pairs. YAML places no restrictions on the typetypes of keys; in particular, they are not restricted to being scalar or string values.
 
YAML associative arrays are also called map elements or key-value pairs. YAML places no restrictions on the type of keys; in particular, they are not restricted to being scalar or string values.
 
<syntaxhighlight lang=YAML>