features/json_serialization.feature in son_jay-0.4.0 vs features/json_serialization.feature in son_jay-0.4.1
- old
+ new
@@ -275,11 +275,11 @@
"""
instance = SimpleObjectModel.new
"""
When the instance's property values are assigned as:
"""
- instance.id = 55
- instance.name = "Polygon"
+ instance['id'] = 55
+ instance.name = "Polygon"
instance['published'] = true
instance['featured'] = false
"""
And the model is serialized to JSON as:
"""