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