MCPcopy
hub / github.com/tidwall/gjson / IsArray

Method IsArray

gjson.go:219–221  ·  view source on GitHub ↗

IsArray returns true if the result value is a JSON array.

()

Source from the content-addressed store, hash-verified

217
218// IsArray returns true if the result value is a JSON array.
219func (t Result) IsArray() bool {
220 return t.Type == JSON && len(t.Raw) > 0 && t.Raw[0] == '['
221}
222
223// IsBool returns true if the result value is a JSON boolean.
224func (t Result) IsBool() bool {

Callers 9

ArrayMethod · 0.95
TestIsArrayIsObjectFunction · 0.80
modReverseFunction · 0.80
modFlattenFunction · 0.80
modValuesFunction · 0.80
modJoinFunction · 0.80
modGroupFunction · 0.80
parseRecursiveDescentFunction · 0.80

Calls

no outgoing calls

Tested by 2

TestIsArrayIsObjectFunction · 0.64