Problems? Is your data what you think it is? | |
PerlMonks |
comment on |
( [id://3333]=superdoc: print w/replies, xml ) | Need Help?? |
> BTW: I think the name "object" is an unfortunate choice, because it is no object in the sense of object-oriented programming.
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
In reply to Re^3: Outputting JSON with sorted names/keys
by LanX
|
|