aboutsummaryrefslogtreecommitdiff
path: root/object.go
diff options
context:
space:
mode:
Diffstat (limited to 'object.go')
-rw-r--r--object.go2
1 files changed, 1 insertions, 1 deletions
diff --git a/object.go b/object.go
index 9e86575..7d1478b 100644
--- a/object.go
+++ b/object.go
@@ -250,7 +250,7 @@ func (o *Object) UnmarshalJSON(data []byte) error {
if ItemTyperFunc == nil {
ItemTyperFunc = JSONGetItemByType
}
- o.ID = JSONGetObjectID(data)
+ o.ID = JSONGetID(data)
o.Type = JSONGetType(data)
o.Name = JSONGetNaturalLanguageField(data, "name")
o.Content = JSONGetNaturalLanguageField(data, "content")