Hacker News new | ask | show | jobs
by jpcapdevila 1488 days ago
Fair, but for objects like in the OP sample? Is there any advantage that justifies the extra steps?
1 comments

I think the advantage for simple objects is just that you can refer to the columns directly vs having to go through a function. It's only really a big win if you're manually writing a lot of sql or if you're using something like Rails and you want to write queries against values in the JSON blob without going through a bunch of hoops.