MCPcopy Create free account
hub / github.com/MaterializeInc/materialize / isJsonObject

Function isJsonObject

console/src/api/materialize/executeSql.tsx:93–100  ·  view source on GitHub ↗
(val: string)

Source from the content-addressed store, hash-verified

91export const CATALOG_SERVER_CLUSTER = "mz_catalog_server";
92
93function isJsonObject(val: string): boolean {
94 try {
95 const parsed = JSON.parse(val);
96 return parsed instanceof Object;
97 } catch (err) {
98 return false;
99 }
100}
101
102const doExecuteSql = async (
103 environmentdHttpAddress: string,

Callers 1

doExecuteSqlFunction · 0.85

Calls 1

parseMethod · 0.45

Tested by

no test coverage detected