It is necessary to catch yaml and json errors that come from invalid json / yaml streams like '{}}'. Having an enumeration after a key value was set is a yaml parser error. Change-Id: Ia8b298c3f1b36c6dee29326955d1e76ade3104b1