MCPcopy Create free account
hub / github.com/postgres-ai/database-lab-engine / LoadJSON

Function LoadJSON

engine/pkg/util/projection/helpers.go:29–32  ·  view source on GitHub ↗

LoadJSON loads struct fields from json document.

(target interface{}, m map[string]interface{}, options LoadOptions)

Source from the content-addressed store, hash-verified

27
28// LoadJSON loads struct fields from json document.
29func LoadJSON(target interface{}, m map[string]interface{}, options LoadOptions) error {
30 soft := NewSoftJSON(m)
31 return Load(target, soft, options)
32}
33
34// StoreJSON stores struct fields to json document.
35func StoreJSON(target interface{}, m map[string]interface{}, options StoreOptions) error {

Callers 3

TestLoadJsonFunction · 0.85
TestLoadJsonNullFunction · 0.85
TestLoadJsonMultiFunction · 0.85

Calls 2

NewSoftJSONFunction · 0.85
LoadFunction · 0.70

Tested by 3

TestLoadJsonFunction · 0.68
TestLoadJsonNullFunction · 0.68
TestLoadJsonMultiFunction · 0.68