Suppose I have a toy that can be a baseball,volleyball,basketball and red,white,or green. The toy is a member of the ball family and color family each has a data member that says what kind of ball or what color. If I get a string of toy.AsJSON shouldn't that string also know about the other families that toy is a member of?
When I load toy from the jason string it is randomly selecting what kind of ball and what color, as if it knows it is a member of the family but didn't save what kind in the string.
How to I save toy to a string and have it know what kind of ball and color the toy is?
thanks for your time.