Do not send empty attributes in json

Signed-off-by: Mike Gehard <mgehard@pivotallabs.com>