MCPcopy Create free account
hub / github.com/LanceLRQ/deer-executor / JSONBytesObject

Function JSONBytesObject

common/utils/json.go:47–50  ·  view source on GitHub ↗

JSONBytesObject 解析JSON字节数组

(jsonBytes []byte, obj interface{})

Source from the content-addressed store, hash-verified

45
46// JSONBytesObject 解析JSON字节数组
47func JSONBytesObject(jsonBytes []byte, obj interface{}) bool {
48 err := json.Unmarshal(jsonBytes, &obj)
49 return err == nil
50}

Callers 4

ReadJudgeResultFunction · 0.92
ReadProblemInfoFunction · 0.92
ReadProblemInfoZipFunction · 0.92
JSONStringObjectFunction · 0.85

Calls

no outgoing calls

Tested by

no test coverage detected