Adds documentation for object syntax.

Updates the docs regarding the object syntax.
:+1: