MCPcopy
hub / github.com/kkdai/youtube / getFirstKeyJSON

Function getFirstKeyJSON

utils.go:30–41  ·  view source on GitHub ↗
(j *sjson.Json)

Source from the content-addressed store, hash-verified

28}
29
30func getFirstKeyJSON(j *sjson.Json) *sjson.Json {
31 m, err := j.Map()
32 if err != nil {
33 return j
34 }
35
36 for key := range m {
37 return j.Get(key)
38 }
39
40 return j
41}
42
43func isValidJSON(j *sjson.Json) bool {
44 b, err := j.MarshalJSON()

Callers 1

parsePlaylistInfoMethod · 0.85

Calls 1

GetMethod · 0.80

Tested by

no test coverage detected

Used in the wild real call sites across dependent graphs

searching dependent graphs…