Check if ticker is an json object.

If not, then say it is an error and exit.

Signed-off-by: Thiago Farina <tfarina@chromium.org>