Retrieves the "key" json field value and unmarshals it into "result". Example result := struct { FirstName string `json:"first_name"` }{} err := m.UnmarshalJSONField("my_field_name", &result)
(key string, result any)
| 1018 | // }{} |
| 1019 | // err := m.UnmarshalJSONField("my_field_name", &result) |
| 1020 | func (m *Record) UnmarshalJSONField(key string, result any) error { |
| 1021 | return json.Unmarshal([]byte(m.GetString(key)), &result) |
| 1022 | } |
| 1023 | |
| 1024 | // ExpandedOne retrieves a single relation Record from the already |
| 1025 | // loaded expand data of the current model. |