It is correct in JS, they don't have plain hashes, you have to (ab)use objects.
In other words you have to take care not to inherit keys. 🙄
NB: OOP is classless in JS
> https://www.json.org/ is quite clear:
Well what I remember were two contradictory RFC's but I can't find the discussion anymore.
Please keep in mind that like with utf8 definitions changed over time from more relaxed to more strict.
This leaves some early adopters like Perl sometimes in a limbo of backwards compatibility.
Cheers Rolf
(addicted to the Perl Programming Language :)
Wikisyntax for the Monastery
FootballPerl is like chess, only without the dice
In reply to Re^3: Outputting JSON with sorted names/keys
by LanX
in thread Outputting JSON with sorted names/keys
by pryrt
| For: | Use: | ||
| & | & | ||
| < | < | ||
| > | > | ||
| [ | [ | ||
| ] | ] |