← All docs

json_validate() — internals

Compiler internals for json_validate(): lowering path, type checks, and runtime helpers.

json_validate() — internals

Where it lives

Lowering notes

  • Lowers json_validate(json, depth?, flags?) into the shared validator runtime.

Runtime helpers

The following runtime helpers are referenced:

  • __rt_json_validate

Signature summary

function json_validate(string $json, int $depth = 512, int $flags = 0): bool

What the type checker enforces

  • Arity: takes 1–3 arguments (2 optional).

Eval interpreter (magician)

Cross-references