blob: ad857e31bbf1cc3ed9981d01100d7d653f08284b [file] [log] [blame] [view]
# FIDL JSON intermediate representation
For all backends (except C), the FIDL compiler operates in two phases.
A first phase parses the FIDL file(s) and produces a JSON-based Intermediate
Representation (**IR**).
A second phase takes the IR as input, and produces the appropriate language-specific output.
The shape of the JSON IR is described in the [schema][json-schema]. All JSON IR files that
are produced during compilation using `fx build` are validated using this schema.
If you are interested in the JSON IR, you can generate it by [running
the FIDL compiler][fidl-cli].
<!-- xrefs -->
[json-schema]: /zircon/tools/fidl/schema.json
[fidl-cli]: /docs/development/languages/fidl/guides/cli.md