Hacker News new | past | comments | ask | show | jobs | submit login

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.




Join us for AI Startup School this June 16-17 in San Francisco!

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

Search: