Language | Structure | Ordered fields | Allows repeats |
---|---|---|---|
JavaScript & JSON | Object | ✗ | ✗ |
JavaScript | Map | ✓ | ✗ |
Python* | Dict | ✓ | ✗ |
PHP | Array | ✓ | ✗ |
Java | HashMap | ✗ | ✗ |
C# | Dictionary | ✗ | ✗ |
* The CPython implementation has maintained order for dict key-value pairs since 3.6 and prior to this OrderedDict has been available.