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

Presumably that could be confusing if you ever happen to have an actual array whose first element is the string "bigint".


Well, no matter what you do, surely you plan on documenting your API to such a bare bones level that your user isn't racking their brain whether a key is a number or an array of data.


Nah, you just have to also encode all arrays like

    ["array", [...]]
;-)




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

Search: