Handle [] {} for body in rest protocols

This change allow to use [] or {} for the definition of the body in rest
protocols.

Fixes bug #1233219

Change-Id: Ib96f0487dd7d78bd657f6d4b3facbd8b611f8702