MCPcopy
hub / github.com/bitly/go-simplejson / Map

Method Map

simplejson.go:178–183  ·  view source on GitHub ↗

Map type asserts to `map`

()

Source from the content-addressed store, hash-verified

176
177// Map type asserts to `map`
178func (j *Json) Map() (map[string]interface{}, error) {
179 if m, ok := (j.data).(map[string]interface{}); ok {
180 return m, nil
181 }
182 return nil, errors.New("type assertion to map[string]interface{} failed")
183}
184
185// Array type asserts to an `array`
186func (j *Json) Array() ([]interface{}, error) {

Callers 5

SetMethod · 0.95
DelMethod · 0.95
GetMethod · 0.95
CheckGetMethod · 0.95
MustMapMethod · 0.95

Calls

no outgoing calls

Tested by

no test coverage detected