Hacker Newsnew | past | comments | ask | show | jobs | submitlogin

I've always disliked the postgres JSON syntax.

Don't get me wrong - I love the feature and use it a lot, but I find the syntax awkward and honestly just... strange (though I've not researched it and have no idea of the reasoning behind it).

Will postgres adopt the SQL standard for JSON "simplified accessor" syntax? Has there been any statements or communications from the development team?



> Don't get me wrong - I love the feature and use it a lot, but I find the syntax awkward and honestly just... strange (though I've not researched it and have no idea of the reasoning behind it).

I'm pretty sure the syntax was just reused from hstore (https://www.postgresql.org/docs/current/hstore.html), for familiarity and simplicity. hstore predates json by 4-5 years.

It might also have made expressions easier to parse, as it doesn't conflict with normal identifier access.




Guidelines | FAQ | Lists | API | Security | Legal | Apply to YC | Contact

Search: