Hacker News new | ask | show | jobs
by em-bee 18 days ago
that's a bit harsh.
1 comments

Php does not distinguish between arrays and hashmaps, which means that an empty dict serialises to json as `[ ]`. You can configure it to serialise to `{ }` instead, but that's a global setting. No, i don't think I'm being harsh.