Adds documentation for object syntax.

Updates the docs regarding the object syntax.
Mmm, I guess I disagree. I think including the same example 6 times is a bit much.