MCPcopy Create free account
hub / github.com/buger/jsonparser / String

Method String

parser.go:1046–1065  ·  view source on GitHub ↗

SYS-REQ-001

()

Source from the content-addressed store, hash-verified

1044
1045// SYS-REQ-001
1046func (vt ValueType) String() string {
1047 switch vt {
1048 case NotExist:
1049 return "non-existent"
1050 case String:
1051 return "string"
1052 case Number:
1053 return "number"
1054 case Object:
1055 return "object"
1056 case Array:
1057 return "array"
1058 case Boolean:
1059 return "boolean"
1060 case Null:
1061 return "null"
1062 default:
1063 return "unknown"
1064 }
1065}
1066
1067var (
1068 trueLiteral = []byte("true")

Callers 15

crashSignatureFunction · 0.45
recordPathCrashFunction · 0.45
TestKeyDepthFunction · 0.45
TestKeyCountFunction · 0.45
TestKeyDepthArrayFunction · 0.45
TestKeyCountArrayFunction · 0.45
TestEachKeyArrayFunction · 0.45
TestLargeArrayFunction · 0.45
TestArrayOutOfBoundsFunction · 0.45
testEachKeyPathDepthFunction · 0.45
randKeyFunction · 0.45

Calls

no outgoing calls

Tested by 15

crashSignatureFunction · 0.36
recordPathCrashFunction · 0.36
TestKeyDepthFunction · 0.36
TestKeyCountFunction · 0.36
TestKeyDepthArrayFunction · 0.36
TestKeyCountArrayFunction · 0.36
TestEachKeyArrayFunction · 0.36
TestLargeArrayFunction · 0.36
TestArrayOutOfBoundsFunction · 0.36
testEachKeyPathDepthFunction · 0.36
randKeyFunction · 0.36