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

Having written a few of them, the input is well-defined but the output is not. It generally depends on what you want to do with the JSON parser. If you are trying to get a generic key-value output, you can do that with a hash table, but you have to still access the keys by name. If you want to populate a struct, you should do something different for maximum speed (parse the fields directly).


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

Search: