MCPcopy Create free account
hub / github.com/auxten/postgresql-parser / toGoRepr

Method toGoRepr

pkg/util/json/json.go:1671–1681  ·  view source on GitHub ↗
()

Source from the content-addressed store, hash-verified

1669 return result, nil
1670}
1671func (j jsonObject) toGoRepr() (interface{}, error) {
1672 result := make(map[string]interface{})
1673 for _, e := range j {
1674 next, err := e.v.toGoRepr()
1675 if err != nil {
1676 return nil, err
1677 }
1678 result[string(e.k)] = next
1679 }
1680 return result, nil
1681}
1682
1683// Pretty pretty-prints the given JSON document as required by jsonb_pretty.
1684func Pretty(j JSON) (string, error) {

Callers

nothing calls this directly

Calls 1

toGoReprMethod · 0.65

Tested by

no test coverage detected