MCPcopy Create free account
hub / github.com/temporalio/temporal / isJSONArray

Function isJSONArray

common/searchattribute/stringify.go:174–177  ·  view source on GitHub ↗
(str string)

Source from the content-addressed store, hash-verified

172}
173
174func isJSONArray(str string) bool {
175 str = strings.TrimSpace(str)
176 return strings.HasPrefix(str, "[") && strings.HasSuffix(str, "]")
177}
178
179func parseJSONArray(str string, t enumspb.IndexedValueType) (any, error) {
180 switch t {

Callers 3

parseValueOrArrayFunction · 0.85
parseValueUnspecifiedFunction · 0.85
Test_isJSONArrayMethod · 0.85

Calls

no outgoing calls

Tested by 1

Test_isJSONArrayMethod · 0.68