select

Follows path from this value, or returns null if any step does not exist.

A path that does not match is absent, not an error: asking for $.user.email of a document that has no user is an ordinary outcome for a query over schemaless data, and making it throw would mean every predicate had to be written twice.


fun select(path: String): Variant?

Follows a path expression such as $.items[0].name. See VariantPath.parse.