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

JSON with comments? How about { "object":{ "foo":1,"bar":"New Jersey"} , "_comment": "blah blah blah" }

A bit hackish, but always worked for me.



Now add a comment for foo and another one for bar. Also try it when your client throws an exception whenever it encounters invalid keys in object. Or if perhaps it blindly persists or tries to perform some logic using that "data". And so on.




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

Search: