TIL that if the outermost element of content in a #CraftCMS JSON field is an *object*, the validation on Save will re-order its keys (in a non-obvious way) 🤦♂️
A way round this is to make the outermost element be an *array*, and then it doesn’t get messed with.
But this means that when key order matters, I can’t…
```
{% for key, data in field %}
…
{% endfor %}
```
I have to…
```
{% for obj in field %}
{% for key, data in obj %}
…
{% endfor %}
{% endfor %}
```
…but…