//UnmarshalJSON decodes the node from a json
UnmarshalJSON decodes the node from a json
// UnmarshalJSON decodes the node from a json
func (v *ValueNode) UnmarshalJSON(data []byte) error {
	m := &valueNode{}
	err := json.Unmarshal(data, m)
	if err != nil {
		return err
	}
	v.UID = m.UID
	v.Word = []rune(m.Word)
	v.PUID = m.PUID
	v.Name = m.Name
	v.Resolved = m.Resolved
	return nil
}
func ( v * ValueNode ) UnmarshalJSON ( data [ ] byte ) error { m := & valueNode { } err := json . Unmarshal ( data , m ) if err != nil { return err } v . UID = m . UID v . Word = [ ] rune ( m . Word ) v . PUID = m . PUID v . Name = m . Name v . Resolved = m . Resolved return nil }
UnmarshalJSON decodes the node from a json
UnmarshalJSON decodes the node from a json