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

Function fromArray

pkg/util/json/json.go:909–919  ·  view source on GitHub ↗
(v []interface{})

Source from the content-addressed store, hash-verified

907}
908
909func fromArray(v []interface{}) (JSON, error) {
910 elems := make([]JSON, len(v))
911 for i := range v {
912 var err error
913 elems[i], err = MakeJSON(v[i])
914 if err != nil {
915 return nil, err
916 }
917 }
918 return jsonArray(elems), nil
919}
920
921func fromMap(v map[string]interface{}) (JSON, error) {
922 keys := make([]string, len(v))

Callers 1

MakeJSONFunction · 0.85

Calls 2

MakeJSONFunction · 0.85
jsonArrayTypeAlias · 0.85

Tested by

no test coverage detected

Used in the wild real call sites across dependent graphs

searching dependent graphs…