Skip to content

Comment on On-demand JSON: A better way to parse documents?parent

Comments

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.

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.

AboutSource Built by g1lg1l

Hackerly is an independent reader for Hacker News, built on the public HN API. Not affiliated with Y Combinator.