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

Not sure I understand exactly what "a separate field" would look like, but:

1. Considering that a goal of Ion is to be a strict superset of JSON, separate syntax ensures that any JSON value can be parsed without misinterpreting some field as an annotation--there are no reserved/"magic" field names.

2. Annotations can be applied to any type of value, not just objects, which are the only type that have fields.



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

Search: