Hacker News new | ask | show | jobs
by minitech 3334 days ago
> Though couldn't you have it easier by making sure your top-level JSON structure is always an object?

Yes, this works too. You’re correct about any keys causing a syntax error.