@scalar/api-client
Version:
the open source API testing client
10 lines (9 loc) • 323 B
JavaScript
import * as n from "monaco-editor";
import { getJsonAstNodeAtPath as e } from "./json-ast.js";
const u = async (o, t) => {
const r = await (await (await n.languages.json.getWorker())(o.uri)).parseJSONDocument(o.uri.toString());
return r?.root ? e(r.root, t) ?? null : null;
};
export {
u as getJsonAstNodeFromPath
};