HN2new | past | comments | ask | show | jobs | submitlogin

Except that you cannot encode pretty valid Double.NaN or Date(), which is showstopper for many.

I remember mongodb started with json, but switched to in-house bson pretty early because of the json limitations.



Is there anything wrong with just using Date.now() to get a UNIX timestamp to store and then converting it for presentation on the client?


new Date().toJSON()


When you parse back the result of this, you are not getting Date back.




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

Search: