← All docs
json_validate() — internals
Compiler internals for json_validate(): lowering path, type checks, and runtime helpers.
json_validate() — internals
Where it lives
- Signature:
src/builtins/system/json_validate.rs - Lowering:
src/codegen/lower_inst/builtins/json.rs:95 (lower_json_validate) - Function symbol:
lower_json_validate()
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)
- Declaration:
crates/elephc-magician/src/interpreter/builtins/json/json_validate.rs(eval_builtin!) - Dispatch hooks:
direct,values