NewSoftJSON creates a new JSON accessor.
(root map[string]interface{})
| 12 | |
| 13 | // NewSoftJSON creates a new JSON accessor. |
| 14 | func NewSoftJSON(root map[string]interface{}) Accessor { |
| 15 | return &softJSON{root: root} |
| 16 | } |
| 17 | |
| 18 | func (s *softJSON) Set(field FieldSet) error { |
| 19 | parent := s.root |