Content deleted Content added
added Go |
No edit summary |
||
Line 1,279:
$hash2 = @{ c=3; d=4 }
$hash3 = $hash1 + $hash2
</source>
== Data serialization formats support ==
{{Expand}}
Many data serialization formats also support associative arrays (see [[Comparison of data serialization formats#Syntax comparison of human-readable formats|this table]])
=== [[JSON]] ===
Keys can only be strings
<source lang="javascript">
{
"Sally Smart": "555-9999",
"John Doe": "555-1212",
"J. Random Hacker": "555-1337"
}
</source>
=== [[YAML]] ===
<source lang="text">
Sally Smart: 555-9999
John Doe: 555-1212
J. Random Hacker: 555-1337
</source>
|