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

Function JSONStringObject

common/utils/json.go:42–44  ·  view source on GitHub ↗

JSONStringObject 解析JSON字符串

(jsonStr string, obj interface{})

Source from the content-addressed store, hash-verified

40
41// JSONStringObject 解析JSON字符串
42func JSONStringObject(jsonStr string, obj interface{}) bool {
43 return JSONBytesObject([]byte(jsonStr), obj)
44}
45
46// JSONBytesObject 解析JSON字节数组
47func JSONBytesObject(jsonBytes []byte, obj interface{}) bool {

Callers

nothing calls this directly

Calls 1

JSONBytesObjectFunction · 0.85

Tested by

no test coverage detected