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>
const myContext = useContext(JsonFileContext);
pathoptional stringThe path of the current JSON file. May be different from the path on disk.
symbolJsonOutputSymbolThe symbol for the value in this JSON file
urloptional stringThe URL of the current JSON file