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

Not too long ago on a personal Android app I was dealing with huge JSON strings that would take 2 seconds to decode on my test phone. I started cheating by plucking substrings out of the response and parsing them, cutting the parse time down by a factor of 10. Thankfully the server never changed the order of their response fields.


Sounds robust... Doesn't that defeat the purpose of JSON?


Hence why I called it "cheating" and I was "thankful" that the server never re-ordered fields (since proper JSON fields have absolutely no guarantee on order).




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

Search: