Hacker News new | ask | show | jobs
by andix 860 days ago
If you already know it's validated and coming from a trusted source there is no reason to validate it again. For example json from a database that only allows inserting valid json. In such cases even the structure might be known and some assumptions can be safely made.
1 comments

Sorry theres no such thing as prevalidated JSON. You can do it in a sidecar all you want.

In-process validation is required. There are no trusted sources. Your confusing valid json with valid json according to a schema for a specific purpose.

Lazy loading JSON parsers have no nead to exist, at all, ever. This is why they dont exist.