LoadJSON loads struct fields from json document.
(target interface{}, m map[string]interface{}, options LoadOptions)
| 27 | |
| 28 | // LoadJSON loads struct fields from json document. |
| 29 | func 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. |
| 35 | func StoreJSON(target interface{}, m map[string]interface{}, options StoreOptions) error { |