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

The problem is that your code should have been expecting that field to be a string and nothing else, and other fields that contain dates to be a date and nothing else. In other words, if you're parsing JSON in this manner you need to apply some sort of schema to the data or have another field in the record denote the datatype. Anytime you're trying to auto-magically detect the datatype of the field, you're gonna have a bad time.


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

Search: