Skip to content

JsonFile context

Provides information about the current JSON source file. This context is used to allow references between JSON files.

const JsonFileContext: ComponentContext<JsonFileContext>

Accessor

const myContext = useContext(JsonFileContext);

Context interface

pathoptionalstring

The path of the current JSON file. May be different from the path on disk.

symbolJsonOutputSymbol

The symbol for the value in this JSON file

urloptionalstring

The URL of the current JSON file